Commit a9eb683b by 孙亚楠

d

parent f523aa9f
......@@ -161,14 +161,15 @@ class SsmuserService extends ServiceBase {
* @returns {Promise<void>}
*/
async ssmUserlogin(params){
if(!params.ucname){
let ucname = this.trim(params.ucname);
let password = this.trim(params.password);
if(!ucname){
return system.getResult(null, `参数错误 用户名不能为空`);
}
if(!params.password){
if(!password){
return system.getResult(null, `参数错误 密码不能为空`);
}
let ucname = this.trim(params.ucname);
let password = this.trim(params.password);
let pwd = await this.getEncryptStr(password);
let user = await this.dao.getSingleSsmUser({ucname});
......
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