更新支付方式相关业务逻辑。
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m31s
All checks were successful
Build docker and publish / build (20.15.1) (push) Successful in 7m31s
This commit is contained in:
parent
4095552252
commit
48383fa0a9
@ -1,11 +1,7 @@
|
|||||||
package order
|
package order
|
||||||
|
|
||||||
import paymentPlatform "github.com/perfect-panel/server/pkg/payment"
|
// canonicalOrderMethod 返回订单的支付方式标识
|
||||||
|
// 直接使用 payment 表中的 platform 原始值(如 apple_iap),不做大小写转换
|
||||||
func canonicalOrderMethod(method string) string {
|
func canonicalOrderMethod(method string) string {
|
||||||
platform := paymentPlatform.ParsePlatform(method)
|
return method
|
||||||
if platform == paymentPlatform.UNSUPPORTED {
|
|
||||||
return method
|
|
||||||
}
|
|
||||||
return platform.String()
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user