lrf402788946 4 년 전
부모
커밋
3cd1877d07
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 });
   }
 }