Commit 7822802e authored by qinhaitao's avatar qinhaitao

fix: 🐛 会员bug

parent f03fdacd
......@@ -124,10 +124,14 @@ class UserService extends BaseService {
updateTime: Date.now()
}
// 初始化 如果已关注添加任务记录
// 初始化 如果已关注添加任务记录
if (isFollow) {
user.taskInfo[today].follow = [{ createTime: Date.now() }]
}
// 初始化 如果已经是会员添加任务记录
if (vipInfo.isVip) {
user.taskInfo[today].member = [{ createTime: Date.now() }]
}
await this.userdao.insertOne(user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment