瀏覽代碼

秒返

three
huangjiajun 1 年之前
父節點
當前提交
0b37cf0098
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      consume/zhios_fast_return_order_refund.go

+ 18
- 0
consume/zhios_fast_return_order_refund.go 查看文件

@@ -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
}

Loading…
取消
儲存