Commit a051cfac by 蒋勇

d

parent debaddca
...@@ -242,11 +242,14 @@ class AccessAuthAPI extends APIBase { ...@@ -242,11 +242,14 @@ class AccessAuthAPI extends APIBase {
return system.getResultSuccess({ auth_url: authUrl, opencode: opencode }); return system.getResultSuccess({ auth_url: authUrl, opencode: opencode });
} }
//根据openid登录
async loginByMobileWithReg(pobj, qobj, req) { async loginByMobileWithReg(pobj, qobj, req) {
if (!pobj.mobile) { if (!pobj.mobile) {
return system.getResult(null, "电话不能为空"); return system.getResult(null, "电话不能为空");
} }
var param = {
app_id: req.app.id,
mobile: pobj.mobile,
}
var ruser = await this.userSve.getUserByUserMobile(param); var ruser = await this.userSve.getUserByUserMobile(param);
if (!ruser) { if (!ruser) {
param = { param = {
......
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