Commit 9eae2c4a by 王昆

gsb

parent 4320c546
...@@ -6,7 +6,9 @@ class LDUserService extends ServiceBase { ...@@ -6,7 +6,9 @@ class LDUserService extends ServiceBase {
constructor() { constructor() {
super(ServiceBase.getDaoName(LDUserService)); super(ServiceBase.getDaoName(LDUserService));
} }
async getById(id) {
return await this.dao.model.findOne({where: {id: id}, raw: true});
}
async loginH5(params) { async loginH5(params) {
let p_id = params.p_id; let p_id = params.p_id;
let p_user_id = params.p_user_id; let p_user_id = params.p_user_id;
......
...@@ -145,8 +145,9 @@ class LDApplet extends AppletBase { ...@@ -145,8 +145,9 @@ class LDApplet extends AppletBase {
if (!loginInfo) { if (!loginInfo) {
return system.getErrResult2("登录过期,请重新登录"); return system.getErrResult2("登录过期,请重新登录");
} }
loginInfo.user.p_user_balance = system.f2y(loginInfo.user.p_user_balance); let user = await this.lduserSve.getById(loginInfo.user.id);
return system.getResult2(loginInfo.user); user.p_user_balance = system.f2y(user.p_user_balance);
return system.getResult2(user);
} }
async saveSignInfo(query, body, req) { async saveSignInfo(query, body, req) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment