Commit d33b2c8b authored by 任国军's avatar 任国军

fix token bug

parent 22a729c7
Pipeline #22621 passed with stage
in 12 seconds
...@@ -210,7 +210,9 @@ class UserService extends Service { ...@@ -210,7 +210,9 @@ class UserService extends Service {
data.openid = user.openid; data.openid = user.openid;
await ctx.classModel.V5.CourseUser.update(data, { where: { id: userInfo.id } }); await ctx.classModel.V5.CourseUser.update(data, { where: { id: userInfo.id } });
data.uuid = userInfo.uuid; data.uuid = userInfo.uuid;
await ctx.classModel.V5.CourseUser.update({ is_deleted: 1 }, { where: { id: user.id } }); if (user.id !== userInfo.id) {
await ctx.classModel.V5.CourseUser.update({ is_deleted: 1 }, { where: { id: user.id } });
}
} else { } else {
await ctx.classModel.V5.CourseUser.update(data, { where: { id: user.id } }); await ctx.classModel.V5.CourseUser.update(data, { where: { id: user.id } });
data.uuid = user.uuid; data.uuid = user.uuid;
......
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