This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user