liuyu %!s(int64=5) %!d(string=hai) anos
pai
achega
8507598572
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

@@ -93,7 +93,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;