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
b514ee5c
Commit
b514ee5c
authored
Aug 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
20620bf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
Basic.php
application/api_broker/extend/Basic.php
+11
-5
No files found.
application/api_broker/extend/Basic.php
View file @
b514ee5c
...
...
@@ -12,6 +12,7 @@ namespace app\api_broker\extend;
use
app\extra\RedisExt
;
use
app\model\AAgents
;
use
app\model\GOperatingRecords
;
use
think\Exception
;
use
UnexpectedValueException
;
use
InvalidArgumentException
;
use
think\Controller
;
...
...
@@ -114,14 +115,19 @@ class Basic extends Controller
*/
public
function
getCity
(
$agentId
)
{
$redis_
=
RedisExt
::
getRedis
();
if
(
$redis_
)
{
$city
=
$redis_
->
get
(
"agent_city_"
.
$agentId
);
$this
->
city
=
empty
(
$city
)
?
"上海市"
:
$city
;
}
else
{
try
{
$redis_
=
RedisExt
::
getRedis
();
if
(
$redis_
)
{
$city
=
$redis_
->
get
(
"agent_city_"
.
$agentId
);
$this
->
city
=
empty
(
$city
)
?
"上海市"
:
$city
;
}
else
{
$this
->
city
=
"上海市"
;
}
}
catch
(
Exception
$exception
)
{
$this
->
city
=
"上海市"
;
}
}
/**
...
...
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