作者 lyh

gx

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