This commit is contained in:
@@ -98,6 +98,7 @@ const (
|
||||
RechargeStatusCompleted = 3 // 已完成
|
||||
RechargeStatusClosed = 4 // 已关闭
|
||||
RechargeStatusRefunded = 5 // 已退款
|
||||
RechargeStatusRejected = 6 // 已驳回
|
||||
)
|
||||
|
||||
// 充值支付方式
|
||||
@@ -121,7 +122,7 @@ const (
|
||||
// ========== Redis Key 生成函数 ==========
|
||||
|
||||
// GetRechargeStatusName 获取充值状态名称
|
||||
// 对应 RechargeStatus* 常量:1=待支付, 2=已支付, 3=已完成, 4=已关闭, 5=已退款
|
||||
// 对应 RechargeStatus* 常量:1=待支付, 2=已支付, 3=已完成, 4=已关闭, 5=已退款, 6=已驳回
|
||||
func GetRechargeStatusName(status int) string {
|
||||
switch status {
|
||||
case RechargeStatusPending:
|
||||
@@ -134,6 +135,8 @@ func GetRechargeStatusName(status int) string {
|
||||
return "已关闭"
|
||||
case RechargeStatusRefunded:
|
||||
return "已退款"
|
||||
case RechargeStatusRejected:
|
||||
return "已驳回"
|
||||
default:
|
||||
return "未知"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user