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
40a83263
Commit
40a83263
authored
Sep 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置城市
parent
215a3f5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
Broker.php
application/index/controller/Broker.php
+37
-0
route.php
application/route.php
+2
-0
No files found.
application/index/controller/Broker.php
View file @
40a83263
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
namespace
app\index\controller
;
namespace
app\index\controller
;
use
app\extra\RedisExt
;
use
app\index\extend\Basic
;
use
app\index\extend\Basic
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\GHousesToAgents
;
use
app\model\GHousesToAgents
;
...
@@ -234,4 +235,39 @@ class Broker extends Basic
...
@@ -234,4 +235,39 @@ class Broker extends Basic
$data
=
$m_store
->
getStoreDistrict
(
$field
,
$where
);
$data
=
$m_store
->
getStoreDistrict
(
$field
,
$where
);
return
$this
->
response
(
200
,
''
,
$data
);
return
$this
->
response
(
200
,
''
,
$data
);
}
}
/**
* 获取所属城市
*
* @return \think\Response
*/
public
function
getCurrentCity
()
{
$data
[
'city'
]
=
$this
->
city
;
return
$this
->
response
(
200
,
''
,
$data
);
}
/**
* 设置城市
*
* @return \think\Response
*/
public
function
settingCity
()
{
if
(
empty
(
$this
->
params
[
'city'
]))
{
return
$this
->
response
(
101
,
'参数错误'
);
}
$msg
=
''
;
$code
=
200
;
try
{
$redis_
=
RedisExt
::
getRedis
();
$redis_
->
set
(
"agent_city_"
.
$this
->
userId
,
$this
->
params
[
'city'
]);
}
catch
(
\Exception
$e
)
{
$code
=
101
;
$msg
=
$e
->
getMessage
();
}
return
$this
->
response
(
$code
,
$msg
);
}
}
}
\ No newline at end of file
application/route.php
View file @
40a83263
...
@@ -107,6 +107,8 @@ Route::group('index', [
...
@@ -107,6 +107,8 @@ Route::group('index', [
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]
],
//解除经纪人和楼盘关系
'delTohouses'
=>
[
'index/broker/delTohouses'
,
[
'method'
=>
'POST'
]
],
//解除经纪人和楼盘关系
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]
],
//获取经纪人和楼盘关系信息
'getAgentsTohouses'
=>
[
'index/broker/getAgentsTohouses'
,
[
'method'
=>
'GET'
]
],
//获取经纪人和楼盘关系信息
'getAgentDistrictStore'
=>
[
'index/broker/getAgentDistrictStore'
,
[
'method'
=>
'GET'
]
],
//获取经纪人id获取部门门店名称
'getAgentDistrictStore'
=>
[
'index/broker/getAgentDistrictStore'
,
[
'method'
=>
'GET'
]
],
//获取经纪人id获取部门门店名称
'getCurrentCity'
=>
[
'index/broker/getCurrentCity'
,
[
'method'
=>
'GET'
]
],
//获取所属城市
'settingCity'
=>
[
'index/broker/settingCity'
,
[
'method'
=>
'POST'
]
],
//设置所属城市
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
'batchChangDish'
=>
[
'index/houses/batchChangDish'
,
[
'method'
=>
'post'
]
],
//批量修改盘方
'transformLandlord'
=>
[
'index/houses/transformLandlord'
,
[
'method'
=>
'post'
]
],
//转换房东手机号
'transformLandlord'
=>
[
'index/houses/transformLandlord'
,
[
'method'
=>
'post'
]
],
//转换房东手机号
'lockHouse'
=>
[
'index/houses/lockHouse'
,
[
'method'
=>
'post'
]
],
//锁盘
'lockHouse'
=>
[
'index/houses/lockHouse'
,
[
'method'
=>
'post'
]
],
//锁盘
...
...
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