1
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
// "authority_id": ""
|
||||
//}`
|
||||
|
||||
var token = `{"access_token":"b558d5bd-d55d-4322-8602-85ba449cbc79","expires_in":1681667840,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"3a3c0ad2-bcbd-4f55-b7af-6b406dabc47a","authority_id":""}`
|
||||
var token = `{"access_token":"c2c6e258-847d-4e8f-a695-b20488a5a667","expires_in":1682270239,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"ebf0e9f1-b200-47c2-a2bb-bafefbdaed47","authority_id":""}`
|
||||
|
||||
//var token = `{"access_token":"e3173e9f-266f-4d87-88e7-e7cd837bc9d9","expires_in":1672882632,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"5070aae2-493f-46bd-b5d6-6ea0cd64729f","authority_id":""}`
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ func (a *API) UpdateSkuStock(param *sku_syncStock_request.SkuSyncStockParam) err
|
||||
return err
|
||||
}
|
||||
if resp.Code != RequestSuccessCode {
|
||||
return errors.New(resp.Msg)
|
||||
return errors.New(resp.SubMsg)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -62,9 +62,9 @@ func TestGetSkuDetailLocalId(t *testing.T) {
|
||||
|
||||
func TestUpdateSkuStore(t *testing.T) {
|
||||
err := a.UpdateSkuStock(&sku_syncStock_request.SkuSyncStockParam{
|
||||
ProductId: 3605142143867471418,
|
||||
OutSkuId: 6045168,
|
||||
StockNum: 2,
|
||||
ProductId: 3612015462742906941,
|
||||
OutSkuId: 6094281,
|
||||
StockNum: 9999,
|
||||
Incremental: false,
|
||||
})
|
||||
fmt.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user