|
|
@@ -333,7 +333,9 @@ class GoodsService extends BaseService
|
|
|
if ($goods) {
|
|
|
RedisService::set($cacheKey . '_page', $page, rand(300, 600));
|
|
|
RedisService::set($cacheKey, $goods, rand(5, 10));
|
|
|
- if(!$this->model->insertAll($goods) && $skus){
|
|
|
+ $this->model->insertAll($goods);
|
|
|
+
|
|
|
+ if($skus){
|
|
|
GoodsSkuModel::insertAll($skus);
|
|
|
}
|
|
|
}
|