liuyu 5 anos atrás
pai
commit
52eabaa559
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

@@ -132,7 +132,7 @@ class WeixinController extends Controller {
         this.ctx.redirect(to_uri);
         this.ctx.redirect(to_uri);
       }
       }
     } else if (type === '1') {
     } else if (type === '1') {
-      const user = await this.ctx.service.user.fetch(uid);
+      const user = await this.ctx.service.user.fetch({ id: uid });
       let _type = '';
       let _type = '';
       if (user) {
       if (user) {
         _type = user.type;
         _type = user.type;