lrf402788946 4 jaren geleden
bovenliggende
commit
3cd1877d07
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      app/controller/weixin.js

+ 2 - 1
app/controller/weixin.js

@@ -208,7 +208,8 @@ class WeixinController extends Controller {
     if (!login) this.ctx.ok(appopenid);
     console.warn(`openid=>${appopenid}`);
     const res = await this.ctx.service.user.findByAppOpenid(appopenid);
-    this.ctx.ok(res);
+    console.warn(res);
+    this.ctx.ok({ ...res });
   }
 }