结账第二期
This commit is contained in:
@@ -1,19 +1,26 @@
|
||||
package ebai
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
"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.partrefund.push",
|
||||
Cmd: "order.user.cancel",
|
||||
Body: make(map[string]interface{}),
|
||||
}
|
||||
msg.Body["refund_id"] = "15518443822344"
|
||||
msg.Body["status"] = "20"
|
||||
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")
|
||||
res := OnFinancialMsg(msg)
|
||||
fmt.Println(res)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user