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

+ 2 - 2
app/Services/Api/GoodsService.php

@@ -349,8 +349,8 @@ class GoodsService extends BaseService
                 if ($cateId && !$this->checkCategory($cateId)) {
                     $categorys[] = [
                         'cate_id' => $cateId,
-                        'name' => isset($info['name']) ? $info['name'] : '',
-                        'pid' => isset($info['pid']) ? intval($info['pid']) : 0,
+                        'name' => isset($item['name']) ? $item['name'] : '',
+                        'pid' => isset($item['pid']) ? intval($item['pid']) : 0,
                         'create_time' => time(),
                     ];
                     $updated++;