|
@@ -89,10 +89,13 @@ func handleZhiosRechargeOrderFail(msg []byte) error { |
|
|
param, aggregationRechargeApiKey := CommAggregation(eg, mid) |
|
|
param, aggregationRechargeApiKey := CommAggregation(eg, mid) |
|
|
param["out_trade_nums"] = oid |
|
|
param["out_trade_nums"] = oid |
|
|
order, err := recharge.GetOrder(aggregationRechargeApiKey, param) |
|
|
order, err := recharge.GetOrder(aggregationRechargeApiKey, param) |
|
|
|
|
|
utils.FilePutContents(mid+"rech", utils.SerializeStr(order)) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
|
|
|
utils.FilePutContents(mid+"rech", err.Error()) |
|
|
return errors.New("err") |
|
|
return errors.New("err") |
|
|
} |
|
|
} |
|
|
if gjson.Get(order, "errno").Int() == 0 && strings.Contains(order, oid) == false { |
|
|
if gjson.Get(order, "errno").Int() == 0 && strings.Contains(order, oid) == false { |
|
|
|
|
|
utils.FilePutContents(mid+"rech", utils.SerializeStr(orderData)) |
|
|
// 更改为已支付 |
|
|
// 更改为已支付 |
|
|
orderData.Status = "已退款" |
|
|
orderData.Status = "已退款" |
|
|
orderData.RefundTime = time.Now() |
|
|
orderData.RefundTime = time.Now() |
|
|