- DefGridWith = 2000
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
DefRadius = 8000
|
DefRadius = 8000
|
||||||
DefGridWith = 3000
|
DefGridWith = 2000
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetCityShops(ctx *jxcontext.Context, parentTask tasksch.ITask, vendorIDs []int, cityCode, radius, gridWith int) (pageStoreList []*model.PageShop, err error) {
|
func GetCityShops(ctx *jxcontext.Context, parentTask tasksch.ITask, vendorIDs []int, cityCode, radius, gridWith int) (pageStoreList []*model.PageShop, err error) {
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ func (c *PurchaseHandler) GetStorePageInfo(ctx *jxcontext.Context, cityInfo, sto
|
|||||||
VendorStatus: utils.Int2Str(shopInfo.BusinessStatus),
|
VendorStatus: utils.Int2Str(shopInfo.BusinessStatus),
|
||||||
|
|
||||||
Address: shopInfo.Address,
|
Address: shopInfo.Address,
|
||||||
Lng: shopInfo.Longitude,
|
Lng: shopInfo.Longitude / 100000,
|
||||||
Lat: shopInfo.Latitude,
|
Lat: shopInfo.Latitude / 100000,
|
||||||
DistrictCode: districtCode,
|
DistrictCode: districtCode,
|
||||||
|
|
||||||
Tel1: shopInfo.Phone,
|
Tel1: shopInfo.Phone,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ type NetSpiderController struct {
|
|||||||
// @Param vendorIDs formData string false "厂商ID列表"
|
// @Param vendorIDs formData string false "厂商ID列表"
|
||||||
// @Param cityCodes formData string false "城市列表,缺省为后台启用了的城市"
|
// @Param cityCodes formData string false "城市列表,缺省为后台启用了的城市"
|
||||||
// @Param radius formData int false "区域半径(市或街道的半径会自动增加或缩小),单位为米,缺省8000米"
|
// @Param radius formData int false "区域半径(市或街道的半径会自动增加或缩小),单位为米,缺省8000米"
|
||||||
// @Param gridWith formData int false "网格大小,单位为米,缺省为3000米"
|
// @Param gridWith formData int false "网格大小,单位为米,缺省为2000米"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /GetAndStoreCitiesShops [post]
|
// @router /GetAndStoreCitiesShops [post]
|
||||||
|
|||||||
Reference in New Issue
Block a user