wesmiler 2 年之前
父節點
當前提交
906ed48cbd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/Api/GoodsService.php

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

@@ -368,7 +368,7 @@ class GoodsService extends BaseService
         if ($categorys) {
             RedisService::set($cacheKey . '_page', $page, rand(300, 600));
             RedisService::set($cacheKey, $categorys, rand(5, 10));
-            GoodsCategoryModel::insertAll($categorys);
+            GoodsCategoryModel::insert($categorys);
         }