xxxrrrdddd hace 2 años
padre
commit
e3a9cdd69a
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      application/admin/controller/TakeCash.php

+ 4 - 1
application/admin/controller/TakeCash.php

@@ -62,7 +62,10 @@ class TakeCash extends Backend
 
             foreach ($list as $row) {
                 
-                $row->getRelation('user')->visible(['nickname']);
+                $row->getRelation('user')->visible(['nickname','name']);
+                if(empty($row['user']['nickname'])){
+                    $row['user']['nickname']=$row['user']['name']??'';
+                }
             }
 
             $result = array("total" => $list->total(), "rows" => $list->items());