ch log
This commit is contained in:
parent
9e1a95bfe3
commit
371cf04c5f
|
@ -255,6 +255,9 @@ func (s *Service) chListCost(ctx *gin.Context, chList []*dbstruct.ConsumeHistory
|
||||||
if chDB.GetChange() < 0 {
|
if chDB.GetChange() < 0 {
|
||||||
item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
|
item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
|
||||||
}
|
}
|
||||||
|
case dbstruct.CHSTypeCostRefundMembership:
|
||||||
|
item.Desc = fmt.Sprintf("会员退款")
|
||||||
|
item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
|
||||||
}
|
}
|
||||||
list = append(list, item)
|
list = append(list, item)
|
||||||
}
|
}
|
||||||
|
@ -282,6 +285,9 @@ func (s *Service) chListCharge(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
||||||
case dbstruct.CHSTypeChargeRefund:
|
case dbstruct.CHSTypeChargeRefund:
|
||||||
item.Desc = "退款"
|
item.Desc = "退款"
|
||||||
item.Change = changeMark + fmt.Sprintf("%d金币", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d金币", chDB.GetChange())
|
||||||
|
case dbstruct.CHSTypeChargeRefundMembership:
|
||||||
|
item.Desc = "会员退款"
|
||||||
|
item.Change = fmt.Sprintf("%d金币", chDB.GetChange())
|
||||||
}
|
}
|
||||||
list = append(list, item)
|
list = append(list, item)
|
||||||
}
|
}
|
||||||
|
@ -306,6 +312,9 @@ func (s *Service) chListIncome(ctx *gin.Context, chList []*dbstruct.ConsumeHisto
|
||||||
case dbstruct.CHSTypeIncomeInvite:
|
case dbstruct.CHSTypeIncomeInvite:
|
||||||
item.Desc = "邀请收益"
|
item.Desc = "邀请收益"
|
||||||
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
|
case dbstruct.CHSTypeIncomeRefund:
|
||||||
|
item.Desc = "会员退款"
|
||||||
|
item.Change = changeMark + fmt.Sprintf("%d钻石", chDB.GetChange())
|
||||||
}
|
}
|
||||||
list = append(list, item)
|
list = append(list, item)
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,8 +117,8 @@ func TestWxpayClient_H5Pay(t *testing.T) {
|
||||||
func TestWxpayClient_RefundOne(t *testing.T) {
|
func TestWxpayClient_RefundOne(t *testing.T) {
|
||||||
cli := GetDefaultWxpayClient()
|
cli := GetDefaultWxpayClient()
|
||||||
resp, err := cli.RefundOne(context.Background(), &RefundOneParam{
|
resp, err := cli.RefundOne(context.Background(), &RefundOneParam{
|
||||||
OutTradeNo: "1767889021582716928",
|
OutTradeNo: "1767893922425614336",
|
||||||
RefundAmount: 100,
|
RefundAmount: 4900,
|
||||||
RefundReason: "发货D退款",
|
RefundReason: "发货D退款",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue