|
|
|
@ -88,11 +88,11 @@ class Payment extends BaseModel |
|
|
|
|
if (empty($merchantId)) { |
|
|
|
|
$merchantId = 0; |
|
|
|
|
} |
|
|
|
|
if (!$data = Cache::get("11payment_{$storeId}_{$merchantId}")) { |
|
|
|
|
if (!$data = Cache::get("payment_{$storeId}_{$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); |
|
|
|
|