20 lines
353 B
Go
20 lines
353 B
Go
package ebai
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"git.rosy.net.cn/baseapi/platformapi/ebaiapi"
|
|
)
|
|
|
|
func TestOnFinancialMsg(t *testing.T) {
|
|
msg := &ebaiapi.CallbackMsg{
|
|
Cmd: "order.partrefund.push",
|
|
Body: make(map[string]interface{}),
|
|
}
|
|
msg.Body["refund_id"] = "15518443822344"
|
|
msg.Body["status"] = "20"
|
|
res := OnFinancialMsg(msg)
|
|
fmt.Println(res)
|
|
}
|