lrf402788946 4 år sedan
förälder
incheckning
3cd1877d07
1 ändrade filer med 2 tillägg och 1 borttagningar
  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 });
   }
 }