From 146692ce4fc26ab59d2059d4687bb36490172086 Mon Sep 17 00:00:00 2001 From: guojia <445241500@qq.com> Date: Mon, 29 Apr 2024 22:17:33 +0800 Subject: [PATCH] trace --- app/common/model/Payment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/model/Payment.php b/app/common/model/Payment.php index 48648ede..115b958b 100644 --- a/app/common/model/Payment.php +++ b/app/common/model/Payment.php @@ -85,11 +85,11 @@ class Payment extends BaseModel $model = new static; // 默认的支付方式数据 $defaultData = $model->defaultData(); - if (!$data = Cache::get("payment_{$storeId}_{$merchantId}")) { + if (!$data = Cache::get("1payment_{$storeId}_{$merchantId}")) { // 获取所有支付方式 $data = $model->dataByStorage($storeId, $defaultData, $merchantId); // 写入缓存中 - Cache::tag('cache')->set("payment_{$storeId}_{$merchantId}", $data); + Cache::tag('cache')->set("1payment_{$storeId}_{$merchantId}", $data); } // 重组缓存数据 (多维) return static::reorganize2($defaultData, $data); @@ -138,7 +138,7 @@ class Payment extends BaseModel // 获取数据库中所有的支付方式 $where = []; if (isset($merchantId) && $merchantId) { - $where = ['merchant_id', '=', $merchantId]; + $where['merchant_id'] = $merchantId; } $list = $this->where($where)->where('store_id', '=', $storeId)->select(); if ($list->isEmpty()) {