wesmiler 2 năm trước cách đây
mục cha
commit
f332f37244
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)) {
                 if ($cateId && !$this->checkCategory($cateId)) {
                     $categorys[] = [
                     $categorys[] = [
                         'cate_id' => $cateId,
                         '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(),
                         'create_time' => time(),
                     ];
                     ];
                     $updated++;
                     $updated++;