xxxrrrdddd %!s(int64=2) %!d(string=hai) anos
pai
achega
e3a9cdd69a
Modificáronse 1 ficheiros con 4 adicións e 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());