Browse Source

增加系统配置接口

kobe6258 4 months ago
parent
commit
0e47c42f68
2 changed files with 7 additions and 7 deletions
  1. 2 2
      controllers/order.go
  2. 5 5
      models/trade_order.go

+ 2 - 2
controllers/order.go

@@ -791,10 +791,10 @@ func (this *OrderController) Refund() {
 		UserId:           tradeOrder.UserId,
 		TemplateUserId:   tradeOrder.TemplateUserId,
 		PaymentType:      models.PaymentTypeRefund,
-		PaymentStatus:    models.PaymentStatusProcessing,
+		PaymentStatus:    models.PaymentStatusPending,
 		CreatedTime:      time.Now(),
 	}
-	productOrder.RefundStatus = models.RefundStatusPending
+	productOrder.RefundStatus = models.RefundStatusProcessing
 	productOrder.Status = models.OrderStatusRefund
 	productOrder.RefundTradeId = refundOrder.TransactionId
 	productOrder.Remark = req.Remark

+ 5 - 5
models/trade_order.go

@@ -9,11 +9,11 @@ type PaymentType string
 type PaymentStatus string
 
 const (
-	PaymentTypePay          PaymentType   = "pay"
-	PaymentTypeRefund       PaymentType   = "refund"
-	PaymentStatusDone       PaymentStatus = "done"
-	PaymentStatusFailed     PaymentStatus = "failed"
-	PaymentStatusProcessing PaymentStatus = "processing"
+	PaymentTypePay       PaymentType   = "pay"
+	PaymentTypeRefund    PaymentType   = "refund"
+	PaymentStatusDone    PaymentStatus = "done"
+	PaymentStatusFailed  PaymentStatus = "failed"
+	PaymentStatusPending PaymentStatus = "pending"
 )
 
 type TradeOrderView struct {