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
36464476
Commit
36464476
authored
Jul 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c3809c9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
14 deletions
+25
-14
UserAgentService.php
application/index/service/UserAgentService.php
+14
-13
UserLogService.php
application/index/service/UserLogService.php
+5
-1
UserSiteModel.php
application/model/UserSiteModel.php
+6
-0
No files found.
application/index/service/UserAgentService.php
View file @
36464476
...
...
@@ -154,19 +154,19 @@ class UserAgentService
* @param $id_old
* @return bool
*/
public
function
changeAgentIdForChangeZone
(
$id_new
,
$id_old
)
{
if
(
!
$id_new
)
return
false
;
$where
[
'agent_id'
]
=
$id_old
;
$params
[
'agent_id'
]
=
$id_new
;
$res
=
$this
->
m_user_agent
->
updateUserAgent
(
$where
,
$params
);
if
(
$res
){
return
true
;
}
else
{
return
false
;
}
}
//
public function changeAgentIdForChangeZone($id_new,$id_old)
//
{
//
if(!$id_new)
//
return false;
//
$where['agent_id'] = $id_old;
//
$params['agent_id'] = $id_new;
//
$res = $this->m_user_agent->updateUserAgent($where, $params);
//
if($res){
//
return true;
//
}else{
//
return false;
//
}
//
}
}
\ No newline at end of file
application/index/service/UserLogService.php
View file @
36464476
...
...
@@ -250,10 +250,14 @@ class UserLogService
#判断是否纯房东 0:否 1:是
$result
[
'is_single_homeowner'
]
=
$result
[
'user_label'
]
==
2
?
1
:
0
;
#
根据站点id组装站点名字
#
客户站点(旧 兼容老版本)
$s_index_user
=
new
UserService
();
$result
[
'site_ids_name'
]
=
$s_index_user
->
userSiteName
(
$result
[
"site_ids"
]);
#客户站点 新(客户站点独立建表)
$s_user_site
=
new
UserSiteService
();
$result
[
'site_ids_name_new'
]
=
$s_user_site
->
getSiteNameList
(
$user_id
);
#是否被收藏
$result
[
"is_collect"
]
=
$this
->
userDetailIsCollect
(
$user_id
,
$agent_id
);
...
...
application/model/UserSiteModel.php
View file @
36464476
...
...
@@ -62,6 +62,12 @@ class UserSiteModel extends Model
}
/**
* 客户城市标签
* @param $field
* @param $params
* @return false|\PDOStatement|string|\think\Collection
*/
public
function
getSiteNameList
(
$field
,
$params
)
{
$params
[
"a.is_del"
]
=
0
;
...
...
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