作者 lyh

gx

... ... @@ -33,7 +33,7 @@ class ManageLogic extends BaseLogic
* @time :2023/9/11 9:34
*/
public function managerSave(){
try {
// try {
if(isset($this->param['id']) && !empty($this->param['id'])){
if(isset($this->param['password']) && !empty($this->param['password'])){
$this->param['password'] = Hash::make($this->param['password']);
... ... @@ -44,9 +44,9 @@ class ManageLogic extends BaseLogic
$this->param['password'] = Hash::make($this->param['password']);
$this->model->add($this->param);
}
}catch (\Exception $e){
$this->fail('系统错误,请联系管理员');
}
// }catch (\Exception $e){
// $this->fail('系统错误,请联系管理员');
// }
return $this->success();
}
... ...