소스 검색

修改绑定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插件!!!!!!');
       }