Merge branch 'dev-lwl/iap' into test
This commit is contained in:
commit
f27c0b2de9
|
@ -113,6 +113,7 @@ type OpOrderVO struct {
|
||||||
Ct int64 `json:"ct"`
|
Ct int64 `json:"ct"`
|
||||||
ProductName string `json:"product_name"`
|
ProductName string `json:"product_name"`
|
||||||
RefundType string `json:"refund_type"`
|
RefundType string `json:"refund_type"`
|
||||||
|
PayType string `json:"pay_type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OpOrderListData struct {
|
type OpOrderListData struct {
|
||||||
|
|
|
@ -324,7 +324,7 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
||||||
if len(item.Change) > 0 {
|
if len(item.Change) > 0 {
|
||||||
newChange += oldChange[:1]
|
newChange += oldChange[:1]
|
||||||
}
|
}
|
||||||
newChange += fmt.Sprintf("%d金币", chDB.GetChange())
|
newChange += fmt.Sprintf("%d金币", util.AbsInt64(chDB.GetChange()))
|
||||||
item.Change = newChange
|
item.Change = newChange
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -750,6 +750,11 @@ func (s *Service) OpOrderList(ctx *gin.Context, req *vasproto.OpOrderListReq) (l
|
||||||
Ct: o.GetCt(),
|
Ct: o.GetCt(),
|
||||||
ProductName: dbstruct.ProductIdDescMap[o.GetProductId()],
|
ProductName: dbstruct.ProductIdDescMap[o.GetProductId()],
|
||||||
RefundType: "退现金",
|
RefundType: "退现金",
|
||||||
|
PayType: o.GetPayType(),
|
||||||
|
}
|
||||||
|
if o.GetPayType() == vasproto.PayTypeCoin {
|
||||||
|
item.Coins = o.GetPayAmount()
|
||||||
|
item.Money = 0
|
||||||
}
|
}
|
||||||
list = append(list, item)
|
list = append(list, item)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue