瀏覽代碼

wesmiler ECY 画画交易平台

APPLE 3 年之前
父節點
當前提交
95c2cf1b24
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      application/cmgadm/controller/user/User.php

+ 4 - 5
application/cmgadm/controller/user/User.php

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