This commit is contained in:
邹宗楠
2023-11-01 11:11:27 +08:00
parent 609b2bcc97
commit fb2c8328bb
3 changed files with 7 additions and 4 deletions

View File

@@ -8,11 +8,11 @@ import (
)
// 京西速食(蔬菜)
var token1 = `{"access_token":"b27e1e5a-0e07-4311-b98b-69df26bbd82e","expires_in":1698285505,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"f6822620-4154-4a4a-b04e-7db30c08e7f9","authority_id":""}`
var token1 = `{"access_token":"5ffb6ad8-3f74-4711-b0d7-7b3dad8e4bca","expires_in":1698887957,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"62ca247b-519d-4b8b-bd1e-54b63208dc55","authority_id":""}`
// 京西到家(商超)
var token2 = `{"access_token":"7e3853fa-24d4-4649-938b-46947da04c92","expires_in":1698887957,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"1dd634e9-9f9e-459b-a770-341fb64e4f88","authority_id":""}`
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token2)
//var token2 = `{"access_token":"7e3853fa-24d4-4649-938b-46947da04c92","expires_in":1698887957,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"1dd634e9-9f9e-459b-a770-341fb64e4f88","authority_id":""}`
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token1)
// 查询售后单详情
func TestAfsOrder(t *testing.T) {

View File

@@ -15,7 +15,7 @@ func TestGetDispatcherInfo(t *testing.T) {
fmt.Println(err)
}
func TestCancelWaybill(t *testing.T) {
err := a.ShopOrderDispatcher(75324142, "6922809843002512994", 2)
err := a.ShopOrderDispatcher(64251630, "6923172525153719861", DispatcherFeeTypeCall)
fmt.Println(err)
}