lrf402788946 пре 4 година
родитељ
комит
a11f3a539d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/controller/weixin.js

+ 1 - 1
app/controller/weixin.js

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