Commit 8194c0df by 白满斌

周边

parent 125f8231
...@@ -150,12 +150,13 @@ class SchoolService extends BaseService{ ...@@ -150,12 +150,13 @@ class SchoolService extends BaseService{
//么有就去获取 //么有就去获取
if($aroundName == '交通'){ if($aroundName == '交通'){
$aroundUrl = self::$localAround .'key='.$gdKey.'&types='.self::$around[$aroundName].'&location='.$location.'&radius=50000&region='.$res['p_code'].'&city_limit=true&page_size=25&show_fields=children,business,navi'; $aroundUrl = self::$localAround .'key='.$gdKey.'&keywords=火车站'.'&types='.self::$around[$aroundName].'&location='.$location.'&radius=50000&region='.$res['p_code'].'&city_limit=true&page_size=10&page_num=1&show_fields=children,business,navi';
$requestRetAround = self::sendGetAround($aroundUrl);
}else{ }else{
$aroundUrl = self::$localAround .'key='.$gdKey.'&keywords='. $aroundName.'&types='.self::$around[$aroundName].'&location='.$location.'&radius=20000&region='.$res['p_code'].'&city_limit=true&show_fields=children,business,navi'; $aroundUrl = self::$localAround .'key='.$gdKey.'&keywords='. $aroundName.'&types='.self::$around[$aroundName].'&location='.$location.'&radius=20000&region='.$res['p_code'].'&city_limit=true&show_fields=children,business,navi';
$requestRetAround = self::sendGetAround($aroundUrl);
} }
$requestRetAround = self::sendGetAround($aroundUrl);
// dd($aroundUrl, $requestRetAround);
$aroundData = [ $aroundData = [
'place_id'=>$placeid, 'place_id'=>$placeid,
'name'=>$aroundName, 'name'=>$aroundName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment