This commit is contained in:
richboo111
2022-10-26 10:19:08 +08:00
parent 1cdfd69d5d
commit 32679b215f
3 changed files with 5 additions and 5 deletions

View File

@@ -379,6 +379,7 @@ func (a *API) AccessAPIHavePage(apiStr string, jdParams map[string]interface{},
localJdParams[KeyPageNo] = curPage localJdParams[KeyPageNo] = curPage
localJdParams[KeyPageSize] = pageSize localJdParams[KeyPageSize] = pageSize
jsonResult, err := a.AccessAPI(apiStr, localJdParams) jsonResult, err := a.AccessAPI(apiStr, localJdParams)
if err != nil { if err != nil {
return nil, totalCount, err return nil, totalCount, err
} }

View File

@@ -238,7 +238,6 @@ func (a *API) GetStoreFreight(storeId int64) ([]int64, error) {
if result.Code != RequestSuccessCode { if result.Code != RequestSuccessCode {
return nil, errors.New(result.SubMsg) return nil, errors.New(result.SubMsg)
} }
tempList := make([]int64, 0) tempList := make([]int64, 0)
for _, v := range result.Data.StoreFreights { for _, v := range result.Data.StoreFreights {
tempList = append(tempList, v.FreightId) tempList = append(tempList, v.FreightId)

View File

@@ -150,14 +150,14 @@ func TestCreateFence(t *testing.T) {
a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token) a := New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
param := &warehouse_createFence_request.WarehouseCreateFenceParam{ param := &warehouse_createFence_request.WarehouseCreateFenceParam{
FenceInfo: &warehouse_createFence_request.FenceInfo{ FenceInfo: &warehouse_createFence_request.FenceInfo{
OutFenceId: "668410-2", OutFenceId: "667094",
Shape: 1, Shape: 1,
Circular: &warehouse_createFence_request.Circular{ Circular: &warehouse_createFence_request.Circular{
Center: &warehouse_createFence_request.Center{ Center: &warehouse_createFence_request.Center{
Longitude: 104.056976, Longitude: 116.686026,
Latitude: 30.755311, Latitude: 39.884685,
}, },
Radius: 100000, Radius: 30000,
}, },
}, },
} }