1
This commit is contained in:
@@ -7,12 +7,12 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
var token = `{"access_token":"4a1ac795-50a7-4f83-8b13-a0ee30d93456","expires_in":1692502247,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"b1892379-82b9-4636-91a3-2bff32d164ca","authority_id":""}`
|
||||
var token = `{"access_token":"4a543151-f8fd-43d5-9c34-d19fe11fc51c","expires_in":1694069036,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"5a2aaca1-42f7-4b83-9358-8ed5d1d4bcd6","authority_id":""}`
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token)
|
||||
|
||||
// 查询售后单详情
|
||||
func TestAfsOrder(t *testing.T) {
|
||||
a.QueryAfsOrderDetail("7165706329204670732", true)
|
||||
a.QueryAfsOrderDetail("6921428072500696298", true)
|
||||
}
|
||||
|
||||
// 同意/拒绝售后单
|
||||
|
||||
@@ -82,17 +82,23 @@ func TestApplyMarketAfterSale(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderStatusAndPsInfo(t *testing.T) {
|
||||
a := NewExpress("7153997323561879075", "3517d3ea-b96b-4379-a7a4-2d9389e8ffeb", "")
|
||||
//appKey := `7152420904331429407` // 暂时定死
|
||||
//appSecret := `cc7ba367-2394-4cbb-81c6-26f0e929d1c6` //暂时定死
|
||||
token := `{"access_token":"4a543151-f8fd-43d5-9c34-d19fe11fc51c","expires_in":1694069036,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"5a2aaca1-42f7-4b83-9358-8ed5d1d4bcd6","authority_id":""}`
|
||||
a := NewExpress("7152420904331429407", "cc7ba367-2394-4cbb-81c6-26f0e929d1c6", token)
|
||||
a.CreateToken()
|
||||
param := make(map[string]interface{}, 0)
|
||||
param["third_carrier_order_id"] = "4996521792598113690"
|
||||
param["logistics_context"] = "呼叫骑手"
|
||||
param["opcode"] = "CALL_RIDER"
|
||||
param["courier_name"] = ""
|
||||
param["courier_phone"] = ""
|
||||
param["third_carrier_order_id"] = "6921428072500696298"
|
||||
param["logistics_context"] = "JIEDAN"
|
||||
param["opcode"] = "DELIVERED"
|
||||
param["courier_name"] = "刘磊"
|
||||
param["courier_phone"] = "18981810340"
|
||||
a.OrderStatusAndPsInfo(param)
|
||||
}
|
||||
|
||||
func TestMap(t *testing.T) {
|
||||
fmt.Println((57 & 2) != 0)
|
||||
}
|
||||
//
|
||||
//
|
||||
//TiktokLogisticsORDERRECEIVED = "ORDER_RECEIVED" // 已接单
|
||||
//TiktokLogisticsRIDERARRIVED = "RIDER_ARRIVED" // 已到店
|
||||
//TiktokLogisticsRIDERPICKUP = "RIDER_PICK_UP" // 已取货
|
||||
//TiktokLogisticsDELIVERED = "DELIVERED" // 已送达
|
||||
|
||||
@@ -37,7 +37,7 @@ func Test(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetShipmentInfo(t *testing.T) {
|
||||
a.GetShipmentInfo(5030299715093774047, 0, ShipmentTypeInvoice)
|
||||
a.GetShipmentInfo(6921428072500696298, 0, ShipmentTypeInvoice)
|
||||
}
|
||||
|
||||
func TestGetStoreAutoCallRiderInfo(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user