|
|
@@ -687,7 +687,7 @@ class User extends Backend
|
|
|
}
|
|
|
}
|
|
|
Db::startTrans();
|
|
|
- try{
|
|
|
+// try{
|
|
|
$result = $this->model->where(['id'=> $ids])->allowField(true)->update($params);
|
|
|
if($result === false){
|
|
|
Db::rollback();
|
|
|
@@ -707,10 +707,9 @@ class User extends Backend
|
|
|
}
|
|
|
Db::commit();
|
|
|
$this->success("修改成功");
|
|
|
- } catch (\Exception $e){
|
|
|
- var_dump($e);
|
|
|
- $this->error($e->getMessage());
|
|
|
- }
|
|
|
+// } catch (\Exception $e){
|
|
|
+// $this->error($e->getMessage());
|
|
|
+// }
|
|
|
}
|
|
|
$row = $this->model->get($ids);
|
|
|
if (!$row)
|