k.zhang vor 1 Monat
Ursprung
Commit
1023c50a7b
2 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 2 0
      apis/shanghu/active.pay.go
  2. 2 0
      apis/shanghu/models/active.pay.go

+ 2 - 0
apis/shanghu/active.pay.go

@@ -111,6 +111,7 @@ func GetGroupBuyPayList(c *gin.Context) {
 			return
 		}
 		data.ActiveName = activeInfo.ActiveName
+		data.ActiveId = activeInfo.ID
 		groupBuySql.ID = v.GroupBuyID
 		groupBuyInfo, err := groupBuySql.GetMerchantActiveGroupBuyById()
 		if err != nil {
@@ -256,6 +257,7 @@ func GroupBuyCancelInfo(c *gin.Context) {
 		app.Error(c, 500, err, err.Error())
 		return
 	}
+	outData.ActiveId = activeConfigInfo.ID
 	outData.ActiveName = activeConfigInfo.ActiveName
 	groupBuySql.ID = payTransInfo.GroupBuyID
 	groupBuyInfo, err := groupBuySql.GetMerchantActiveGroupBuyById()

+ 2 - 0
apis/shanghu/models/active.pay.go

@@ -18,6 +18,7 @@ type GetGroupBuyPayRequest struct {
 }
 
 type GetGroupBuyPayReply struct {
+	ActiveId         int64  `json:"active_id"`          //活动id
 	ActiveName       string `json:"active_name"`        //活动名称
 	GroupBuyName     string `json:"group_buy_name"`     //拼团名称
 	Amount           string `json:"amount"`             //交易金额
@@ -46,6 +47,7 @@ type GroupBuyCancelInfoRequest struct {
 }
 
 type GroupBuyCancelInfoReply struct {
+	ActiveId        int64                   `json:"active_id"`         //活动id
 	ActiveName      string                  `json:"active_name"`       //活动名称
 	GroupBuyName    string                  `json:"group_buy_name"`    //拼团名称
 	Amount          string                  `json:"amount"`            //交易金额