bugfix:未登录循环注册
This commit is contained in:
@@ -48,6 +48,8 @@ Page({
|
||||
expireTime: data.expire_time,
|
||||
})
|
||||
wx.setStorageSync(STORAGE_KEYS.USER_INFO, data.user_info)
|
||||
// 新登录用户重置未读红点,进入 tab 页后由 tabBar 拉取真实值
|
||||
wx.setStorageSync(STORAGE_KEYS.UNREAD, 0)
|
||||
this.setData({ userInfo: data.user_info })
|
||||
if (data.user_info.is_new_user) {
|
||||
this.showWelcomeGift(data.user_info)
|
||||
|
||||
Reference in New Issue
Block a user