feature/main20240421
郭嘉 8 months ago
parent bb7cc58a7b
commit 204e5acd09
  1. 4
      app/common/model/Payment.php

@ -88,11 +88,11 @@ class Payment extends BaseModel
if (empty($merchantId)) { if (empty($merchantId)) {
$merchantId = 0; $merchantId = 0;
} }
if (!$data = Cache::get("11payment_{$storeId}_{$merchantId}")) { if (!$data = Cache::get("payment_{$storeId}_{$merchantId}")) {
// 获取所有支付方式 // 获取所有支付方式
$data = $model->dataByStorage($storeId, $defaultData, $merchantId); $data = $model->dataByStorage($storeId, $defaultData, $merchantId);
// 写入缓存中 // 写入缓存中
Cache::tag('cache')->set("11payment_{$storeId}_{$merchantId}", $data); Cache::tag('cache')->set("payment_{$storeId}_{$merchantId}", $data);
} }
// 重组缓存数据 (多维) // 重组缓存数据 (多维)
return static::reorganize2($defaultData, $data); return static::reorganize2($defaultData, $data);

Loading…
Cancel
Save