|
@@ -354,6 +354,7 @@ class CmsContentTemplateSetRepository
|
|
{
|
|
{
|
|
$group_key = config('constants.CMS_GROUP');
|
|
$group_key = config('constants.CMS_GROUP');
|
|
$market_key = config('constants.CMS_MARKET');
|
|
$market_key = config('constants.CMS_MARKET');
|
|
|
|
+ $exchange_key = config('constants.CMS_EXCHANGE');
|
|
|
|
|
|
//同一个城市同一个模板(团购/菜市场) 只能有一种状态(草稿/发布),已发布的一旦被编辑把之前的直接删掉
|
|
//同一个城市同一个模板(团购/菜市场) 只能有一种状态(草稿/发布),已发布的一旦被编辑把之前的直接删掉
|
|
$template = $this->cmsContentTemplate->select('id', 'city_name', 'city_id', 'title', 'apply_type', 'is_open', 'status')->where('id', $request['tpl_id'])->first();
|
|
$template = $this->cmsContentTemplate->select('id', 'city_name', 'city_id', 'title', 'apply_type', 'is_open', 'status')->where('id', $request['tpl_id'])->first();
|
|
@@ -418,6 +419,10 @@ class CmsContentTemplateSetRepository
|
|
if (Cache::has($market_key)) {
|
|
if (Cache::has($market_key)) {
|
|
Cache::forget($market_key);
|
|
Cache::forget($market_key);
|
|
}
|
|
}
|
|
|
|
+ } elseif ($template->apply_type == 2) {
|
|
|
|
+ if (Cache::has($exchange_key)) {
|
|
|
|
+ Cache::forget($exchange_key);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|