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