wesmiler hace 2 años
padre
commit
906ed48cbd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         }