Explorar el Código

Merge branch 'master' of e.coding.net:zdap/weixiu/weixiu_api into equity-m

liugc hace 1 año
padre
commit
81d1ee9429

+ 1 - 1
app/adminapi/lists/master_worker/MasterWorkerServiceOrderLists.php

@@ -107,7 +107,7 @@ class MasterWorkerServiceOrderLists extends BaseAdminDataLists implements ListsS
             ->select()->toArray();
         $categoryData = GoodsCategory::select()->toArray();
         foreach ($lists as &$item) {
-            $item['category_name'] = implode('、',array_column(get_parent_info($categoryData,explode(',',$item['category_ids'])),'name'));
+            $item['category_name'] = $item['category_ids']?implode('、',array_column(get_parent_info($categoryData,explode(',',$item['category_ids'])),'name')):'';
         }
         return $lists;
     }