From 48383fa0a943bb7071bd53146c0fd798cf7919e3 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Tue, 10 Mar 2026 21:42:02 -0700 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=94=AF=E4=BB=98=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E7=9B=B8=E5=85=B3=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/public/order/paymentMethod.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/internal/logic/public/order/paymentMethod.go b/internal/logic/public/order/paymentMethod.go index 7315342..c9da31e 100644 --- a/internal/logic/public/order/paymentMethod.go +++ b/internal/logic/public/order/paymentMethod.go @@ -1,11 +1,7 @@ package order -import paymentPlatform "github.com/perfect-panel/server/pkg/payment" - +// canonicalOrderMethod 返回订单的支付方式标识 +// 直接使用 payment 表中的 platform 原始值(如 apple_iap),不做大小写转换 func canonicalOrderMethod(method string) string { - platform := paymentPlatform.ParsePlatform(method) - if platform == paymentPlatform.UNSUPPORTED { - return method - } - return platform.String() + return method }