huangsanjia 2 лет назад
Родитель
Сommit
7f575c5d96
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      application/admin/controller/Entrust.php

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

@@ -462,7 +462,7 @@ class Entrust extends Backend
             $record = [];
             for ($i=0;$i<count($idList);$i++){
                 $entrust_res = Db::name('entrust')->where('id', $idList[$i])->update($entrust_update[$i]);
-                Db::name('res')->where('entrust_id',$idList[$i])->update(['delete_time'=>time()]);
+                Db::name('res')->where('entrust_id',$idList[$i])->update(['delete_time'=>date('Y-m-d H:i:s',time())]);
                 $res_check = Db::name('res')->insert($params[$i]);
                 $log_res = Db::name('entrust_log')->insert($log[$i]);
                 if (!$log_res || !$res_check) {