This commit is contained in:
gazebo
2019-06-25 17:07:34 +08:00
parent dffbae5430
commit cb2bdf4187

View File

@@ -563,7 +563,7 @@ func (a *API) GetStoreList(lng string, lat string) (retVal map[string]interface{
}
func (a *API) GetStoreList2(lng float64, lat float64) (shopListInfo *PageListInfo, err error) {
retVal, err := a.AccessStorePageNoCookie(fmt.Sprintf("/newretail/main/shoplist?channel=kitchen&pn=1&rn=999&lng=%f&lat=%f", lng, lat))
retVal, err := a.AccessStorePageNoCookie(fmt.Sprintf("/newretail/main/shoplist?channel=kitchen&pn=1&rn=999&lng=%s&lat=%s", fmt.Sprintf("%.6f", lng), fmt.Sprintf("%.6f", lat)))
if err == nil {
err = utils.Map2StructByJson(retVal, &shopListInfo, true)
}