Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tj_tool
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
牟俊洁
tj_tool
Commits
8194c0df
Commit
8194c0df
authored
Nov 04, 2025
by
白满斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周边
parent
125f8231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
SchoolService.php
app/Http/Services/SchoolService.php
+4
-3
No files found.
app/Http/Services/SchoolService.php
View file @
8194c0df
...
@@ -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®ion='
.
$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®ion='
.
$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®ion='
.
$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®ion='
.
$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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment