Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
02be1549
Commit
02be1549
authored
Oct 24, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2706ca94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
Basic.php
application/api_broker/extend/Basic.php
+17
-3
No files found.
application/api_broker/extend/Basic.php
View file @
02be1549
...
@@ -124,9 +124,23 @@ class Basic extends Controller
...
@@ -124,9 +124,23 @@ class Basic extends Controller
$this
->
siteId
=
$redis_
->
get
(
"agent_site_id_"
.
$agentId
);
$this
->
siteId
=
$redis_
->
get
(
"agent_site_id_"
.
$agentId
);
}
}
if
(
empty
(
$this
->
city
)
||
empty
(
$this
->
siteId
)){
if
(
empty
(
$this
->
city
)
||
empty
(
$this
->
siteId
)){
//取数据库
$m_agent
=
new
AAgents
();
$this
->
city
=
"上海市"
;
$m_site
=
new
ASite
();
$this
->
siteId
=
"10001"
;
$site_id
=
$m_agent
->
getAgentsById
(
$agentId
,
'site_id'
);
if
(
$site_id
)
{
$this
->
siteId
=
$site_id
;
$city
=
$m_site
->
getSiteById
(
$site_id
,
'city'
);
if
(
$city
)
{
$this
->
city
=
$city
;
}
else
{
echo
json_encode
(
array
(
"code"
=>
"300"
,
"msg"
=>
'账号位置信息错误,请联系运营'
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
}
}
else
{
echo
json_encode
(
array
(
"code"
=>
"300"
,
"msg"
=>
'账号位置信息错误,请联系运营'
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
}
}
}
}
catch
(
Exception
$exception
)
{
}
catch
(
Exception
$exception
)
{
echo
json_encode
(
array
(
"code"
=>
"300"
,
"msg"
=>
$exception
,
"data"
=>
[],
"type"
=>
"json"
));
echo
json_encode
(
array
(
"code"
=>
"300"
,
"msg"
=>
$exception
,
"data"
=>
[],
"type"
=>
"json"
));
...
...
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