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
a45423a6
Commit
a45423a6
authored
Aug 07, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
f14a733a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Location.php
application/api_broker/controller/Location.php
+4
-4
Basic.php
application/api_broker/extend/Basic.php
+2
-2
No files found.
application/api_broker/controller/Location.php
View file @
a45423a6
...
@@ -30,16 +30,16 @@ class Location extends Basic
...
@@ -30,16 +30,16 @@ class Location extends Basic
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
$params
=
array
(
"agent_id"
=>
1
,
"agent_id"
=>
1
,
"city"
=>
"上海"
"city"
=>
"上海
市
"
);
);
$checkResult
=
$this
->
validate
(
$params
,
"LocationValidate.saveSiteCityVerify"
);
$checkResult
=
$this
->
validate
(
$params
,
"LocationValidate.saveSiteCityVerify"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
}
}
$city
=
"上海"
;
$city
=
"上海
市
"
;
$agent_id
=
$params
[
"agent_id"
];
$agent_id
=
$params
[
"agent_id"
];
if
(
$params
[
"city"
]
==
"杭州"
)
{
if
(
$params
[
"city"
]
==
"杭州
市"
||
$params
[
"city"
]
==
"杭州
"
)
{
$city
=
"杭州"
;
$city
=
"杭州
市
"
;
}
}
if
(
$this
->
redis_
)
{
if
(
$this
->
redis_
)
{
$this
->
redis_
->
set
(
self
::
CITY_AGENTS
.
$agent_id
,
$city
);
$this
->
redis_
->
set
(
self
::
CITY_AGENTS
.
$agent_id
,
$city
);
...
...
application/api_broker/extend/Basic.php
View file @
a45423a6
...
@@ -117,9 +117,9 @@ class Basic extends Controller
...
@@ -117,9 +117,9 @@ class Basic extends Controller
$redis_
=
RedisExt
::
getRedis
();
$redis_
=
RedisExt
::
getRedis
();
if
(
$redis_
)
{
if
(
$redis_
)
{
$city
=
$redis_
->
get
(
"agent_city_"
.
$agentId
);
$city
=
$redis_
->
get
(
"agent_city_"
.
$agentId
);
$this
->
city
=
empty
(
$city
)
?
"上海"
:
$city
;
$this
->
city
=
empty
(
$city
)
?
"上海
市
"
:
$city
;
}
else
{
}
else
{
$this
->
city
=
"上海"
;
$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