@@ -74,8 +74,8 @@ class CmsContentTemplateRepository {
*/
public function edit($request)
{
- $group_key = env('REDIS_HOME_GROUP_KEY');
- $market_key = env('REDIS_HOME_MARKET_KEY');
+ $group_key = config('constants.CMS_GROUP');
+ $market_key = config('constants.CMS_MARKET');
$template_id = $this->cmsContentTemplate->find($request['id']);
if ($request['city_id'] == 610100 && $request['is_open'] == 0){
@@ -295,8 +295,8 @@ class CmsContentTemplateSetRepository {
public function release($request)
//同一个城市同一个模板(团购/菜市场) 只能有一种状态(草稿/发布),已发布的一旦被编辑把之前的直接删掉
$template = $this->cmsContentTemplate->select('id','city_name','city_id','title','apply_type','is_open','status')->where('id',$request['tpl_id'])->first();
@@ -29,6 +29,7 @@ $app->configure('apollo');
$app->configure('auth');
$app->configure('jwt');
$app->configure('database');
+$app->configure('constants');
/*
|--------------------------------------------------------------------------
@@ -0,0 +1,10 @@
+<?php
+
+/**
+ * 常量配置
+ */
+return [
+ 'CMS_GROUP' => env('REDIS_CMS_GROUP_KEY', 'cms_shop_group'),
+ 'CMS_MARKET' => env('REDIS_CMS_MARKET_KEY', 'cms_shop_market'),
+];