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; }