huangjiajun 1 rok temu
rodzic
commit
0b37cf0098
1 zmienionych plików z 18 dodań i 0 usunięć
  1. +18
    -0
      consume/zhios_fast_return_order_refund.go

+ 18
- 0
consume/zhios_fast_return_order_refund.go Wyświetl plik

@@ -12,6 +12,7 @@ import (
"errors"
"fmt"
"github.com/streadway/amqp"
"time"
)

func ZhiosFastReturnOrderRefund(queue md.MqQueue) {
@@ -146,5 +147,22 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error {
args1 = CommInfo(eg, mid, args1)
pay.CreditagreementOrderFinish(args1)
}
var flow = &model.FinUserFlow{
Type: 1,
Uid: orderData.Uid,
Amount: "",
PaymentType: 3,
BeforeAmount: "0",
AfterAmount: "0",
OrdType: "fast_return",
OrdId: utils.AnyToString(orderData.OrdId),
OrdAction: 103,
OrdTitle: "秒返订单退款扣除" + money + "元(请到支付宝查看)",
State: 2,
OtherId: 0,
OrdTime: int(time.Now().Unix()),
CreateAt: time.Now(),
}
eg.Insert(flow)
return nil
}

Ładowanie…
Anuluj
Zapisz