瀏覽代碼

修改绑定bug

liuyu 5 年之前
父節點
當前提交
5aec7edc19
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/service/user.js

+ 3 - 3
app/service/user.js

@@ -103,8 +103,8 @@ class UserService extends CrudService {
 
   // 其他用户绑定
   async userbind(data) {
-    const { openid, uid, qucode } = data;
-    assert(openid && uid && qucode, '缺少部分信息项');
+    const { openid, uid, qrcode } = data;
+    assert(openid && uid && qrcode, '缺少部分信息项');
     const user = await this.model.findById(uid);
     if (!user) {
       throw new BusinessError(ErrorCode.USER_NOT_EXIST);
@@ -123,7 +123,7 @@ class UserService extends CrudService {
           } };
         console.log(parm);
         console.log(msg);
-        await mq.topic('qrcode.bind', qucode, msg, parm);
+        await mq.topic('qrcode.bind', qrcode, msg, parm);
       } else {
         this.ctx.logger.error('!!!!!!没有配置MQ插件!!!!!!');
       }