Просмотр исходного кода

Wesmiler 三勾多商户商城提交

wesmiler 3 лет назад
Родитель
Сommit
ddcb2e43f5
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/api/model/store/Store.php

+ 4 - 4
app/api/model/store/Store.php

@@ -49,9 +49,9 @@ class Store extends StoreModel
     public function getChoiceLists($is_check = null, $longitude = '', $latitude = '', $limit = false, $shop_supplier_id = 0)
     {
         $cacheKey = "caches:stores:{$shop_supplier_id}_".intval($limit).'_'.md5("{$is_check}_{$latitude}_{$longitude}");
-        if($list = \think\facade\Cache::get($cacheKey)){
-            return $list;
-        }
+//        if($list = \think\facade\Cache::get($cacheKey)){
+//            return $list;
+//        }
 
         $model = $this;
         // 是否支持自提核销
@@ -99,7 +99,7 @@ class Store extends StoreModel
             });
 
         if($list){
-            \think\facade\Cache::tag('cache')->set($cacheKey, $list, rand(5, 10));
+            //\think\facade\Cache::tag('cache')->set($cacheKey, $list, rand(5, 10));
         }
 
         return $list;