aa
This commit is contained in:
@@ -19,7 +19,7 @@ type CreateStoreParam struct {
|
||||
|
||||
func (a *API) CreateStore(createStoreParam *CreateStoreParam) (err error) {
|
||||
params := utils.Struct2FlatMap(createStoreParam)
|
||||
_, err = a.AccessAPI("v2/chain_store", TestURL, params, true)
|
||||
_, err = a.AccessAPI("v2/chain_store", URL, params, true)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ type GetStoreResult struct {
|
||||
}
|
||||
|
||||
func (a *API) GetStore(storeID int) (getStoreResult *GetStoreResult, err error) {
|
||||
result, err := a.AccessAPI("v2/chain_store/query", TestURL, map[string]interface{}{
|
||||
result, err := a.AccessAPI("v2/chain_store/query", URL, map[string]interface{}{
|
||||
"chain_store_code": []string{utils.Int2Str(storeID)},
|
||||
}, true)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user