This commit is contained in:
richboo111
2023-03-01 16:05:47 +08:00
parent a3c8ad137f
commit a0c0c8a6c1
7 changed files with 80 additions and 56 deletions

View File

@@ -18,7 +18,7 @@ import (
// "authority_id": ""
//}`
var token = `{"access_token":"e1c4333c-6e5e-4db8-83d3-173923e0815f","expires_in":1677450559,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"89d62aee-5bb3-433c-9514-e435172a3263","authority_id":""}`
var token = `{"access_token":"f1ee4188-d49a-4eaf-9cb8-7d754a23d19e","expires_in":1678053416,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"08ce6c28-37b4-4c3e-9942-7d078c551bc2","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":""}`

View File

@@ -21,7 +21,7 @@ func TestApi(t *testing.T) {
}
func TestQueryOrderDetail(t *testing.T) {
data, err := a.GetTiktokOrderDetail("5012575500183489614")
data, err := a.GetTiktokOrderDetail("5039319444977829100")
globals.SugarLogger.Debugf("=====%s", utils.Format4Output(data, false))
globals.SugarLogger.Debugf("=====%s", err)
}

View File

@@ -146,6 +146,18 @@ func (a *API) UnsuspendStore(param *shop_unsuspendStore_request.ShopUnsuspendSto
}
return response.Data, nil
}
func (a *API) UnsuspendStore2(storeID int64) (*shop_unsuspendStore_response.ShopUnsuspendStoreData, error) {
request := shop_unsuspendStore_request.New()
request.Param.StoreId = storeID
response, err := request.Execute(a.accessTokenObj)
if err != nil {
return nil, err
}
if response.Code != RequestSuccessCode {
return nil, errors.New(response.SubMsg)
}
return response.Data, nil
}
type VendorAndStoreId struct {
StoreId string `json:"store_id"` //京西本地ID

File diff suppressed because one or more lines are too long