Jelajahi Sumber

委托单管理

huangsanjia 2 tahun lalu
induk
melakukan
a22f2bec6b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      application/admin/controller/Entrust.php

+ 1 - 1
application/admin/controller/Entrust.php

@@ -404,7 +404,7 @@ class Entrust extends Backend
             $entrust_res = Db::name('entrust')->where('id',$id)->update($entrust_update);
             $res_check = Db::name('res')->insert($params);
             $log_res = Db::name('entrust_log')->insert($log);
-            if (!$entrust_res || !$res_check){
+            if (!$log_res || !$res_check){
                 $result = false;
             }
             Db::commit();