|
|
@@ -83,6 +83,27 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error { |
|
|
|
if amount <= 0 { |
|
|
|
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) |
|
|
|
args := map[string]string{ |
|
|
|
"out_trade_no": utils.Int64ToStr(orderData.OrdId), |
|
|
|