lizhen_gitee 8 месяцев назад
Родитель
Сommit
e3748bb397
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      application/admin/controller/Trainactive.php

+ 2 - 0
application/admin/controller/Trainactive.php

@@ -63,6 +63,8 @@ class Trainactive extends Backend
                 $row->getRelation('cate')->visible(['name']);
 				$row->getRelation('level')->visible(['name']);
 				$row->getRelation('type')->visible(['name']);
+
+                $row['usercount'] = count(explode(',',$row['user_ids']));
             }
 
             $result = array("total" => $list->total(), "rows" => $list->items());