lrf402788946 4 år sedan
förälder
incheckning
8ad94894af
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      app/controller/weixin.js

+ 1 - 0
app/controller/weixin.js

@@ -128,6 +128,7 @@ class WeixinController extends Controller {
     if (openid) {
       console.log('redirect_uri-->' + redirect_uri);
       let user = await this.ctx.service.user.findByOpenid(openid);
+      user = JSON.parse(JSON.stringify(user));
       if (type === '0') {
         // 通过openid取得用户信息
         if (user) {