Commit 05aaf778 by 李宏达

Merge branch 'igirl-web' of gitlab.gongsibao.com:jiangyong/zhichan into igirl-web

parents d2ff347f 8e69ba12
......@@ -183,6 +183,7 @@ class UserCtl extends CtlBase {
async loginByMobile(pobj, obj, req) {
const cid = req.companyid;
obj.u.cid = cid;
var company = await this.companyS.findById(req.companyid);
var existedUser = await this.service.getUserByMobile(obj.u);
if (existedUser != null) {
req.session.user = existedUser;
......@@ -192,7 +193,8 @@ class UserCtl extends CtlBase {
mobile: obj.u.mobile,
userName: obj.u.mobile,
nickName: obj.u.mobile,
company_id: obj.u.cid
company_id: obj.u.cid,
themename:company.siteTheme
};
var result = await this.service.create(params);
req.session.user = result;
......
......@@ -47,7 +47,7 @@ class MoneyJourneyService extends ServiceBase {
} else {
var b = year + "-" + i;
}
a.push({ name: b, receive: 0, pay: 0 });
a.push({ month: b, receive: 0, pay: 0 });
}
} else {
var b = month;
......
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