Commit 125f8231 by 白满斌

周边

parent 5a39a0a3
...@@ -149,8 +149,13 @@ class SchoolService extends BaseService{ ...@@ -149,8 +149,13 @@ class SchoolService extends BaseService{
} }
//么有就去获取 //么有就去获取
$aroundUrl = self::$localAround .'key='.$gdKey.'&keywords='. $aroundName.'&types='.self::$around[$aroundName].'&location='.$location.'&radius=20000&region='.$res['p_code'].'&city_limit=true'; 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';
}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';
}
$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