aa
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -50,7 +51,7 @@ func TestOrderReceived(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderConfirm(t *testing.T) {
|
||||
err := api.OrderConfirm(25236872740350976)
|
||||
err := api.OrderConfirm(27058923254735296)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -80,7 +81,7 @@ func TestOrderLogisticsStatus(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderBatchPullPhoneNumber(t *testing.T) {
|
||||
result, err := api.OrderBatchPullPhoneNumber(testPoiCode, 0, MaxBatchPullPhoneNumberLimit)
|
||||
result, err := api.OrderBatchPullPhoneNumber("5873_2705892", 0, MaxBatchPullPhoneNumberLimit)
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -135,3 +136,37 @@ func TestGetOrderIdByDaySeqSingle(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOrderRefundReject(t *testing.T) {
|
||||
err := api.OrderRefundReject(27058923254735296, "测试")
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOrderRefundAgree(t *testing.T) {
|
||||
err := api.OrderRefundAgree(27058922456066076, "测试")
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOrderCancel(t *testing.T) {
|
||||
err := api.OrderCancel(27058922397679200, "取消", 1)
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAa2(t *testing.T) {
|
||||
time := time.Now().Unix()
|
||||
fmt.Println(api.signParams(apiURL+"/oauth/authorize?", map[string]interface{}{
|
||||
"timestamp": time,
|
||||
"app_id": "5873",
|
||||
"app_poi_code": "5873_2705892",
|
||||
"response_type": "token",
|
||||
}), time)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user