From 89d17018dcb6badcd0ac37aee270c72fef885f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=98=89?= <445241500@qq.com> Date: Fri, 31 May 2024 11:05:53 +0800 Subject: [PATCH] 1 --- app/common/model/Payment.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/common/model/Payment.php b/app/common/model/Payment.php index ecd03ab0..04511159 100644 --- a/app/common/model/Payment.php +++ b/app/common/model/Payment.php @@ -88,11 +88,12 @@ class Payment extends BaseModel if (empty($merchantId)) { $merchantId = 0; } - if (!$data = Cache::get("payment_{$storeId}_{$merchantId}")) { + //if (!$data = Cache::get("payment_{$storeId}_{$merchantId}")) { + if (true) { // 获取所有支付方式 $data = $model->dataByStorage($storeId, $defaultData, $merchantId); // 写入缓存中 - Cache::tag('cache')->set("payment_{$storeId}_{$merchantId}", $data); + //Cache::tag('cache')->set("payment_{$storeId}_{$merchantId}", $data); } // 重组缓存数据 (多维) return static::reorganize2($defaultData, $data); @@ -124,7 +125,7 @@ class Payment extends BaseModel foreach ($data as &$item) { $item['methods'] = array_values($item['methods']); } - unset($item); + //unset($item); return $data; }