饿百 部分退款订单退款之后由于原正向订单佣金改变而导致扣款金额不准的问题
This commit is contained in:
@@ -7,20 +7,24 @@ import (
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
func TestOnFinancialMsg(t *testing.T) {
|
||||
msg := &ebaiapi.CallbackMsg{
|
||||
// Cmd: "order.partrefund.push",
|
||||
Cmd: "order.user.cancel",
|
||||
Body: make(map[string]interface{}),
|
||||
Timestamp: time.Now().Unix(),
|
||||
Body: make(map[string]interface{}),
|
||||
}
|
||||
msg.Body["refund_id"] = "15531567190216"
|
||||
msg.Body["timestamp"] = utils.Int64ToStr(time.Now().Unix())
|
||||
// msg.Body["status"] = json.Number("20")
|
||||
msg.Body["type"] = json.Number("40")
|
||||
msg.Body["cancel_type"] = json.Number("2")
|
||||
msg.Body["order_id"] = "1554939646172038357"
|
||||
|
||||
// 部分退款
|
||||
msg.Cmd = "order.partrefund.push"
|
||||
msg.Body["status"] = json.Number("20")
|
||||
|
||||
// 全单退款
|
||||
// msg.Cmd = "order.user.cancel"
|
||||
// msg.Body["type"] = json.Number("40")
|
||||
// msg.Body["cancel_type"] = json.Number("2")
|
||||
|
||||
res := OnFinancialMsg(msg)
|
||||
fmt.Println(res)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user