Browse Source

秒返

three
huangjiajun 1 year ago
parent
commit
e62b1a291c
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      consume/zhios_fast_return_order_refund.go

+ 21
- 0
consume/zhios_fast_return_order_refund.go View File

@@ -83,6 +83,27 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error {
if amount <= 0 { if amount <= 0 {
return nil return nil
} }
if orderData.IsTransfer == 0 {
args := map[string]string{
"out_request_no": utils.Int64ToStr(orderData.OrdId),
"is_fulfilled": "true",
"credit_biz_order_id": orderData.FastSignId,
"remark": "",
}
args = CommInfo(eg, mid, args)
finish, err := pay.CreditagreementOrderFinish(args)
fmt.Println(finish)
if err != nil {
fmt.Println(err)
}
if err != nil || finish == nil {
return errors.New("err")
}
if finish.ZhimaCreditPayafteruseCreditbizorderFinishResponse.Code != "10000" {
return errors.New("err")
}
return nil
}
money := utils.Float64ToStr(float64(amount) / 100) money := utils.Float64ToStr(float64(amount) / 100)
args := map[string]string{ args := map[string]string{
"out_trade_no": utils.Int64ToStr(orderData.OrdId), "out_trade_no": utils.Int64ToStr(orderData.OrdId),


Loading…
Cancel
Save