This commit is contained in:
Jerry Yan 2020-06-12 07:32:20 +08:00
parent 20163e34fa
commit 7439174e15

View File

@ -34,29 +34,29 @@ class Staffs extends Base{
$code = input("post.verifyCode"); $code = input("post.verifyCode");
// if(!WSTVerifyCheck($code)){ if(!WSTVerifyCheck($code)){
//
// return WSTReturn('验证码错误!'); return WSTReturn('验证码错误!');
//
// } }
//
// $decrypt_data = WSTRSA($loginPwd); $decrypt_data = WSTRSA($loginPwd);
//
// if($decrypt_data['status']==1){ if($decrypt_data['status']==1){
//
// $loginPwd = $decrypt_data['data']; $loginPwd = $decrypt_data['data'];
//
// }else{ }else{
//
// return WSTReturn('登录失败'); return WSTReturn('登录失败');
//
// } }
//
$staff = $this->where(['loginName'=>$loginName,'staffStatus'=>1,'dataFlag'=>1])->find(); $staff = $this->where(['loginName'=>$loginName,'staffStatus'=>1,'dataFlag'=>1])->find();
if(empty($staff))return WSTReturn('账号或密码错误!'); if(empty($staff))return WSTReturn('账号或密码错误!');
// if($staff['loginPwd']==md5($loginPwd.$staff['secretKey'])){ if($staff['loginPwd']==md5($loginPwd.$staff['secretKey'])){
$staff->lastTime = date('Y-m-d H:i:s'); $staff->lastTime = date('Y-m-d H:i:s');
@ -124,9 +124,9 @@ class Staffs extends Base{
return WSTReturn("",1,$staff); return WSTReturn("",1,$staff);
// } }
//
// return WSTReturn('账号或密码错误!'); return WSTReturn('账号或密码错误!');
} }