Merge branch 'master' of e.coding.net:rosydev/baseapi
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
var token = `{"access_token":"2baa1126-bba0-4510-8ffa-6af55ba0bdbd","expires_in":1670828768,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"23b3eb4e-bb00-4b85-952d-de47801de80d","authority_id":""}`
|
||||
var token = `{"access_token":"e8b6c1bc-2477-40ff-bd8e-faf547669d77","expires_in":1671431173,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"3cd84170-73a0-485c-b55a-74e128618693","authority_id":""}`
|
||||
var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||
|
||||
// 查询售后单详情
|
||||
|
||||
@@ -407,6 +407,7 @@ func (a *API) GetWarehouseByStore(storeID int64) (*warehouse_getWarehouseByStore
|
||||
if len(response.Data.WarehouseInfoMap) == 0 {
|
||||
return nil, errors.New(fmt.Sprintf("门店%d 暂时未绑定仓库,请进行绑定!", storeID))
|
||||
}
|
||||
globals.SugarLogger.Debugf("", response.Data.WarehouseInfoMap[utils.Int64ToStr(storeID)][0].OutFenceIds[0])
|
||||
return response.Data, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -235,8 +235,8 @@ func TestUpdateStore(t *testing.T) {
|
||||
|
||||
//获取门店绑定仓库
|
||||
func TestGetWarehouseByStore(t *testing.T) {
|
||||
resp, err := a.GetWarehouseByStore(63520016)
|
||||
fmt.Println(resp)
|
||||
resp, err := a.GetWarehouseByStore(64270382)
|
||||
fmt.Println(resp.WarehouseInfoMap["64270382"][0].OutFenceIds[0])
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user