Browse Source

1、登录时更新unionid;

Lawsun_M 1 year ago
parent
commit
bca9931945
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/controller/home/user.js

+ 1 - 0
app/controller/home/user.js

@@ -358,6 +358,7 @@ module.exports = class UserController extends shopController {
       const updateBean = await that.app.comoBean.instance({
         login_time: that.app.szjcomo.date('Y-m-d H:i:s'),
         update_ttime: that.app.szjcomo.date('Y-m-d H:i:s'),
+        unionid: userInfo.unionid,
       }, { where: { user_id: user.user_id } });
       await that.service.base.update(updateBean, that.useModel, '微信用户登录时间更新失败,请重试');
     }