Ver Fonte

youfeng

cqp há 1 mês atrás
pai
commit
c385ad5eeb
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Service/EmployeeService.php

+ 2 - 2
app/Service/EmployeeService.php

@@ -537,8 +537,8 @@ class EmployeeService extends Service
     public function fillRoleList($list,$user){
         if(empty($list)) return $list;
 
-        foreach ($list as $key => $value){
-            $list[$key]['crt_time'] = $value['crt_time'] ? date("Y-m-d",$value['crt_time']) : "";
+        foreach ($list['data'] as $key => $value){
+            $list['data'][$key]['crt_time'] = $value['crt_time'] ? date("Y-m-d",$value['crt_time']) : "";
         }
 
         return $list;