Commit 9eae2c4a by 王昆

gsb

parent 4320c546
......@@ -6,7 +6,9 @@ class LDUserService extends ServiceBase {
constructor() {
super(ServiceBase.getDaoName(LDUserService));
}
async getById(id) {
return await this.dao.model.findOne({where: {id: id}, raw: true});
}
async loginH5(params) {
let p_id = params.p_id;
let p_user_id = params.p_user_id;
......
......@@ -145,8 +145,9 @@ class LDApplet extends AppletBase {
if (!loginInfo) {
return system.getErrResult2("登录过期,请重新登录");
}
loginInfo.user.p_user_balance = system.f2y(loginInfo.user.p_user_balance);
return system.getResult2(loginInfo.user);
let user = await this.lduserSve.getById(loginInfo.user.id);
user.p_user_balance = system.f2y(user.p_user_balance);
return system.getResult2(user);
}
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