From 5390622114b602a5001790704c57a745177ca4fd 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:03:58 +0800 Subject: [PATCH] 1 --- app/common/model/Payment.php | 1 + app/store/model/Payment.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/model/Payment.php b/app/common/model/Payment.php index f04e51ae..ecd03ab0 100644 --- a/app/common/model/Payment.php +++ b/app/common/model/Payment.php @@ -124,6 +124,7 @@ class Payment extends BaseModel foreach ($data as &$item) { $item['methods'] = array_values($item['methods']); } + unset($item); return $data; } diff --git a/app/store/model/Payment.php b/app/store/model/Payment.php index 25b9ffd3..8ba5a393 100644 --- a/app/store/model/Payment.php +++ b/app/store/model/Payment.php @@ -36,7 +36,7 @@ class Payment extends PaymentModel // 批量写入商品图片记录 $res = static::increased($dataList); // 删除系统设置缓存 - Cache::delete('payment_' . self::$storeId); + Cache::delete('payment_' . self::$storeId."_".$merchantId); return true; }