Skip to content

Commit 1f63ee2

Browse files
committed
修正用户star数量的保存
1 parent 5ff9635 commit 1f63ee2

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎VERSION.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* 仓库issue统计。
1010
* 个人组织列表。
1111
* 多语言、主题。
12-
* 本地阅读历史。
1312
* 个人动态表。
1413
* markdown点击跳转。
1514
* webview点击跳转。

‎lib/common/dao/UserDao.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class UserDao {
9393
User user = User.fromJson(res.data);
9494
user.starred = starred;
9595
if (userName == null) {
96-
LocalStorage.save(Config.USER_INFO, json.encode(res.data));
96+
LocalStorage.save(Config.USER_INFO, json.encode(user.toJson()));
9797
} else {
9898
if (needDb) {
9999
provider.insert(userName, json.encode(user.toJson()));

0 commit comments

Comments
 (0)