liuyu 5 년 전
부모
커밋
52eabaa559
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
       }
     } 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 = '';
       if (user) {
         _type = user.type;