wesmiler 2 месяцев назад
Родитель
Сommit
f1124ca32e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Services/Api/SupervisorsService.php

+ 1 - 0
app/Services/Api/SupervisorsService.php

@@ -83,6 +83,7 @@ class SupervisorsService extends BaseService
         $list = $list ? $list->toArray() : [];
         if ($list) {
             foreach ($list['data'] as &$item) {
+                $item['consults_count']=$item['guidance_count']?$item['guidance_count']:$item['consults_count'];
                 $item['create_time'] = $item['create_time'] ? datetime($item['create_time'], 'Y-m-d H.i.s') : '';
             }
         }