1
This commit is contained in:
@@ -8,16 +8,17 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
var token = `{
|
//var token = `{
|
||||||
"access_token": "b668f8cc-d875-4887-a613-5452f05e752e",
|
// "access_token": "b668f8cc-d875-4887-a613-5452f05e752e",
|
||||||
"expires_in": 1671432212,
|
// "expires_in": 1671432212,
|
||||||
"scope": "SCOPE",
|
// "scope": "SCOPE",
|
||||||
"shop_id": 63141688,
|
// "shop_id": 63141688,
|
||||||
"shop_name": "小时达开放平台专用店",
|
// "shop_name": "小时达开放平台专用店",
|
||||||
"refresh_token": "fa64fedf-05a7-4c1b-b6c4-f97f90e10b75",
|
// "refresh_token": "fa64fedf-05a7-4c1b-b6c4-f97f90e10b75",
|
||||||
"authority_id": ""
|
// "authority_id": ""
|
||||||
}`
|
//}`
|
||||||
|
|
||||||
|
var token = `{"access_token":"e8b6c1bc-2477-40ff-bd8e-faf547669d77","expires_in":1671431173,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"3cd84170-73a0-485c-b55a-74e128618693","authority_id":""}`
|
||||||
var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||||
|
|
||||||
// 查询售后单详情
|
// 查询售后单详情
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ func TestApi(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestQueryOrderDetail(t *testing.T) {
|
func TestQueryOrderDetail(t *testing.T) {
|
||||||
data, err := a.GetTiktokOrderDetail("5008526050099613284")
|
data, err := a.GetTiktokOrderDetail("5012575500183489614")
|
||||||
globals.SugarLogger.Debugf("=====%s", utils.Format4Output(data, false))
|
globals.SugarLogger.Debugf("=====%s", utils.Format4Output(data, false))
|
||||||
globals.SugarLogger.Debugf("=====%s", err)
|
globals.SugarLogger.Debugf("=====%s", err)
|
||||||
}
|
}
|
||||||
@@ -42,15 +42,15 @@ func TestTimeNow(t *testing.T) {
|
|||||||
|
|
||||||
func TestSendGoods(t *testing.T) {
|
func TestSendGoods(t *testing.T) {
|
||||||
param := &order_logisticsAdd_request.OrderLogisticsAddParam{
|
param := &order_logisticsAdd_request.OrderLogisticsAddParam{
|
||||||
OrderId: "4989178132980723098",
|
OrderId: "5013254696638589999",
|
||||||
Company: "",
|
Company: "",
|
||||||
CompanyCode: "chengdouruoxi",
|
CompanyCode: "chengdouruoxi",
|
||||||
LogisticsCode: "4989178132980723098111",
|
LogisticsCode: "5013254696638589999",
|
||||||
IsRefundReject: false,
|
IsRefundReject: false,
|
||||||
IsRejectRefund: false,
|
IsRejectRefund: false,
|
||||||
SerialNumberList: nil,
|
SerialNumberList: nil,
|
||||||
AddressId: 0,
|
AddressId: 0,
|
||||||
StoreId: 63114504,
|
StoreId: 63520894,
|
||||||
}
|
}
|
||||||
a.OrderDelivering(param)
|
a.OrderDelivering(param)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user