diff --git a/application/service/GoodsService.php b/application/service/GoodsService.php index a387164d6..f42cbb7c8 100755 --- a/application/service/GoodsService.php +++ b/application/service/GoodsService.php @@ -2091,6 +2091,9 @@ class GoodsService $data['add_time'] = time(); if(Db::name('GoodsCategory')->insertGetId($data) > 0) { + // 删除大分类缓存 + cache(config('shopxo.cache_goods_category_key'), null); + return DataReturn('添加成功', 0); } return DataReturn('添加失败', -100);