1
This commit is contained in:
@@ -2,6 +2,7 @@ package ebaiapi
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -311,6 +312,8 @@ func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[
|
|||||||
}*/
|
}*/
|
||||||
params = utils.MergeMaps(params, defParams)
|
params = utils.MergeMaps(params, defParams)
|
||||||
result, err := a.AccessAPI2("sku.create", params, trackInfo)
|
result, err := a.AccessAPI2("sku.create", params, trackInfo)
|
||||||
|
globals.SugarLogger.Debugf("========result := %s", utils.Format4Output(result, false))
|
||||||
|
globals.SugarLogger.Debugf("========result := %v", err)
|
||||||
if err == nil && result.Data != nil {
|
if err == nil && result.Data != nil {
|
||||||
return utils.Interface2Int64WithDefault(result.Data.(map[string]interface{})[KeySkuID], 0), nil
|
return utils.Interface2Int64WithDefault(result.Data.(map[string]interface{})[KeySkuID], 0), nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 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 a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token1)
|
||||||
|
|
||||||
// 查询售后单详情
|
// 查询售后单详情
|
||||||
func TestAfsOrder(t *testing.T) {
|
func TestAfsOrder(t *testing.T) {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ func TestGetDispatcherInfo(t *testing.T) {
|
|||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
func TestCancelWaybill(t *testing.T) {
|
func TestCancelWaybill(t *testing.T) {
|
||||||
err := a.ShopOrderDispatcher(75324142, "6922809843002512994", 2)
|
err := a.ShopOrderDispatcher(64251630, "6923172525153719861", DispatcherFeeTypeCall)
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user