Skip to content

Commit

Permalink
显示登陆提示 (#14)
Browse files Browse the repository at this point in the history
* 分享信息中添加up主

* 显示登录提示

---------

Co-authored-by: guozhigq <[email protected]>
  • Loading branch information
KoolShow and guozhigq authored Dec 28, 2023
1 parent 7f1d5b8 commit c9a3ffb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/wbi_sign.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import 'package:hive/hive.dart';
import 'package:pilipala/http/index.dart';
import 'package:crypto/crypto.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'dart:convert';

import 'package:pilipala/utils/storage.dart';
Expand Down Expand Up @@ -119,6 +120,7 @@ class WbiSign {
}
var resp =
await Request().get('https://api.bilibili.com/x/web-interface/nav');
SmartDialog.showToast('签到!');
var jsonContent = resp.data['data'];

String imgUrl = jsonContent['wbi_img']['img_url'];
Expand Down

0 comments on commit c9a3ffb

Please sign in to comment.