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
5fcfe88c
Commit
5fcfe88c
authored
Jul 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f5d019fa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
5 deletions
+41
-5
User.php
application/api_broker/controller/User.php
+1
-1
UserAgentService.php
application/index/service/UserAgentService.php
+16
-0
UserLogService.php
application/index/service/UserLogService.php
+7
-4
UserAgentModel.php
application/model/UserAgentModel.php
+17
-0
No files found.
application/api_broker/controller/User.php
View file @
5fcfe88c
...
@@ -676,7 +676,7 @@ class User extends Basic
...
@@ -676,7 +676,7 @@ class User extends Basic
}
}
//简易客户详情
//简易客户详情
$result
[
'user_detail'
]
=
$this
->
userLogService
->
userDetailStreamline
(
$params
[
'user_id'
],
$params
[
'agent_id'
]);
$result
[
'user_detail'
]
=
$this
->
userLogService
->
userDetailStreamline
(
$params
[
'user_id'
],
$params
[
'agent_id'
]
,
$this
->
siteId
);
//绑定关系(关联客户)
//绑定关系(关联客户)
$s_index_user
=
new
UserService
();
$s_index_user
=
new
UserService
();
$result
[
'user_bind_list'
]
=
$s_index_user
->
userBindInfo
(
$params
[
'user_id'
]);
$result
[
'user_bind_list'
]
=
$s_index_user
->
userBindInfo
(
$params
[
'user_id'
]);
...
...
application/index/service/UserAgentService.php
View file @
5fcfe88c
...
@@ -168,5 +168,20 @@ class UserAgentService
...
@@ -168,5 +168,20 @@ class UserAgentService
// }
// }
// }
// }
/**
* 查客方
* @param $site_id
* @param $user_id
* @return array|false|\PDOStatement|string|\think\Model
*/
public
function
getUserAgentId
(
$site_id
,
$user_id
)
{
$params
[
'site_id'
]
=
$site_id
;
$params
[
'user_id'
]
=
$user_id
;
$field
=
'agent_id'
;
$user_agent_info
=
$this
->
m_user_agent
->
getUserAgentId
(
$field
,
$params
);
return
$user_agent_info
;
}
}
}
\ No newline at end of file
application/index/service/UserLogService.php
View file @
5fcfe88c
...
@@ -115,7 +115,9 @@ class UserLogService
...
@@ -115,7 +115,9 @@ class UserLogService
$data
[
'site_ids_name_new'
]
=
$s_user_site
->
getSiteNameList
(
$user_id
);
$data
[
'site_ids_name_new'
]
=
$s_user_site
->
getSiteNameList
(
$user_id
);
#拨打电话按钮是否显示 0:显示 1:不显示
#拨打电话按钮是否显示 0:显示 1:不显示
$data
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$user_arr
[
'user_phone'
],
$user_arr
[
"agent_id"
],
$agent_id
,
$user_arr
[
'vip'
]);
$s_user_agent
=
new
UserAgentService
();
$user_agent_id
=
$s_user_agent
->
getUserAgentId
(
$site_id
,
$user_id
);
$data
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$user_arr
[
'user_phone'
],
$user_agent_id
[
'agent_id'
],
$agent_id
,
$user_arr
[
'vip'
]);
//客方
//客方
$s_user_agent
=
new
UserAgentService
();
$s_user_agent
=
new
UserAgentService
();
...
@@ -233,9 +235,8 @@ class UserLogService
...
@@ -233,9 +235,8 @@ class UserLogService
* @param $agent_id
* @param $agent_id
* @return mixed
* @return mixed
*/
*/
public
function
userDetailStreamline
(
$user_id
,
$agent_id
)
public
function
userDetailStreamline
(
$user_id
,
$agent_id
,
$site_id
)
{
{
//查询客户详情
//查询客户详情
$field
=
'id as user_id,sex,user_pic,other_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label,
$field
=
'id as user_id,sex,user_pic,other_pic,user_nick,user_name,user_phone,site_ids,agent_id,user_label,
industry_type,price_demand,area_demand,vip,user_status,entrust_type,concrete_industry'
;
industry_type,price_demand,area_demand,vip,user_status,entrust_type,concrete_industry'
;
...
@@ -266,7 +267,9 @@ class UserLogService
...
@@ -266,7 +267,9 @@ class UserLogService
$result
[
"is_outstrip_twenty_four_hours"
]
=
$user_service
->
isUserProtect
(
$user_id
);
$result
[
"is_outstrip_twenty_four_hours"
]
=
$user_service
->
isUserProtect
(
$user_id
);
#拨打电话按钮是否显示 0:显示 1:不显示
#拨打电话按钮是否显示 0:显示 1:不显示
$result
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$result
[
'user_phone'
],
$result
[
"agent_id"
],
$agent_id
,
$result
[
'vip'
]);
$s_user_agent
=
new
UserAgentService
();
$user_agent_id
=
$s_user_agent
->
getUserAgentId
(
$site_id
,
$user_id
);
$result
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$result
[
'user_phone'
],
$user_agent_id
[
"agent_id"
],
$agent_id
,
$result
[
'vip'
]);
#编辑客户详情权限 0:有权限 1:无权限
#编辑客户详情权限 0:有权限 1:无权限
...
...
application/model/UserAgentModel.php
View file @
5fcfe88c
...
@@ -42,6 +42,23 @@ class UserAgentModel extends Model
...
@@ -42,6 +42,23 @@ class UserAgentModel extends Model
return
$result
;
return
$result
;
}
}
/**
* 查客方
* @param $field
* @param $params
* @return array|false|\PDOStatement|string|Model
*/
public
function
getUserAgentId
(
$field
,
$params
)
{
$params
[
"is_del"
]
=
0
;
$result
=
$this
->
db_
->
field
(
$field
)
->
where
(
$params
)
->
find
();
//echo $this->getLastSql();
return
$result
;
}
public
function
selectUserAgent
(
$field
,
$params
)
public
function
selectUserAgent
(
$field
,
$params
)
{
{
$params
[
"a.is_del"
]
=
0
;
$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