Commit 3443e16a by 蒋勇

d

parent bab60577
......@@ -10,6 +10,10 @@ class AccessAuthAPI extends APIBase {
this.userSve = system.getObject("service.auth.userSve");
this.vCodeExTime = 120;//验证码缓存秒数
}
async deleteUserForTest(pobj, query, req){
await this.userSve.deleteUserForTest(pobj);
return system.getResult({});
}
/*查询注册用户的信息sys*/
async queryRegUser(pobj, query, req) {
var appid = req.app.id;
......
......@@ -11,6 +11,12 @@ class UserService extends ServiceBase {
this.roleDao = system.getObject("db.auth.roleDao");
this.compDao=system.getObject("db.common.companyDao");
}
//按照电话号码,删除账号
async deleteUserForTest(obj){
await this.db.models.user.destroy({where:{mobile:obj.mobile,app_id:2}});
await this.db.models.account.destroy({where:{userName:obj.mobile}});
return {};
}
//按照电话和密码查询出用户
async findUserByMobilePwd(appid,mobile,pwd){
var pwd=await super.getEncryptStr(pwd);
......
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