lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
a11f3a539d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 });
   }
 }