소스 검색

Merge branch 'develop'

duqinya 5 년 전
부모
커밋
374569405e
1개의 변경된 파일13개의 추가작업 그리고 13개의 파일을 삭제
  1. 13 13
      app/Repositories/CmsContentTemplateSetRepository.php

+ 13 - 13
app/Repositories/CmsContentTemplateSetRepository.php

@@ -227,13 +227,13 @@ class CmsContentTemplateSetRepository
 //            return Cache::store('redis')->get($exchange_key);
 //        }
 
-        Log::info(Redis::exists($exchange_key));
-        if (Redis::exists($exchange_key)) {
-            $result = Redis::get($exchange_key);
-            $res = json_decode($result, true);
-            Log::info($res);
-            return $res;
-        }
+//        Log::info(Redis::exists($exchange_key));
+//        if (Redis::exists($exchange_key)) {
+//            $result = Redis::get($exchange_key);
+//            $res = json_decode($result, true);
+//            Log::info($res);
+//            return $res;
+//        }
 
         $banner_rule = $this->cmsContentTemplateSet->select('id', 'rule')->where(['tpl_id' => $temalates->id, 'area_type' => 0, 'status' => 1])->limit(1)->first();
         $new_rule = [];
@@ -309,12 +309,12 @@ class CmsContentTemplateSetRepository
 //        if (!Cache::has($exchange_key)) {
 //            Cache::store('redis')->put($exchange_key, $group_array, 600);//10分钟过期
 //        }
-
-        if (!Redis::exists($exchange_key)) {
-//            Redis::setex($exchange_key, 600, json_encode($group_array));//10分钟过期
-            Redis::setex($exchange_key, 60, json_encode($group_array));//1分钟过期
-            Log::debug('兑换商城缓存存储成功-' . json_encode($group_array));
-        }
+//
+//        if (!Redis::exists($exchange_key)) {
+////            Redis::setex($exchange_key, 600, json_encode($group_array));//10分钟过期
+//            Redis::setex($exchange_key, 60, json_encode($group_array));//1分钟过期
+//            Log::debug('兑换商城缓存存储成功-' . json_encode($group_array));
+//        }
 
         return $group_array;
     }