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
6da56e10
Commit
6da56e10
authored
Sep 26, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
54076e08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
UserLogService.php
application/index/service/UserLogService.php
+11
-12
No files found.
application/index/service/UserLogService.php
View file @
6da56e10
...
...
@@ -280,7 +280,7 @@ class UserLogService
#拨打电话按钮是否显示 0:显示 1:不显示
$result
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$agent_id
,
$result
[
'vip'
],
$result
[
'user_phone'
]
,
$result
[
'agent_id'
]
);
$result
[
'is_phone_button_show'
]
=
$this
->
isPhoneButtonShow
(
$user_id
,
$agent_id
,
$result
[
'vip'
],
$result
[
'user_phone'
]);
#编辑客户详情权限 0:有权限 1:无权限
$result
[
'is_can_edit_user_info'
]
=
$user_service
->
isCanEditUserInfo
(
$result
[
"agent_id"
],
$agent_id
,
$user_id
);
...
...
@@ -376,14 +376,13 @@ class UserLogService
/**
* 拨打电话按钮是否显示
* @param $user_id
* @param $agent_id
* @param $is_vip
* @param $result_user_phone
* @param $result_agent_id
* @param $user_id //客户ID
* @param $agent_id //当前经纪人ID
* @param $is_vip //客户vip状态
* @param $user_phone //客户手机号
* @return int
*/
public
function
isPhoneButtonShow
(
$user_id
,
$agent_id
,
$is_vip
,
$
result_user_phone
,
$result_agent_id
)
public
function
isPhoneButtonShow
(
$user_id
,
$agent_id
,
$is_vip
,
$
user_phone
)
{
#当天有约带看的客户 0:不显示 1:显示
$s_user_call
=
new
UserCallStintService
();
...
...
@@ -399,7 +398,7 @@ class UserLogService
$res
=
$this
->
isPhoneButtonShowA
(
$user_id
,
$agent_id
);
}
else
{
//无约带看 走老逻辑
$res
=
$this
->
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$
result_
user_phone
);
$res
=
$this
->
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$user_phone
);
}
return
$res
;
}
...
...
@@ -430,10 +429,10 @@ class UserLogService
* @param $user_id
* @param $agent_id
* @param $is_vip
* @param $
result_
user_phone
* @param $user_phone
* @return int
*/
public
function
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$
result_
user_phone
)
public
function
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$user_phone
)
{
$user_service
=
new
UserService
();
$vip_services
=
new
VipService
();
...
...
@@ -451,7 +450,7 @@ class UserLogService
if
(
$agent_boss_res
==
0
)
$is_user_agent_boss
=
0
;
#是否有绑定关系 0有 1无
$called_res
=
$this
->
userDetailIsOutpaceCallNumPhone
(
$
result_
user_phone
,
$agent_id
);
$called_res
=
$this
->
userDetailIsOutpaceCallNumPhone
(
$user_phone
,
$agent_id
);
if
(
$called_res
==
0
)
$called
=
0
;
}
...
...
@@ -464,7 +463,7 @@ class UserLogService
// if ($is_user_agent_boss_v2 == 0)
// $is_user_agent_boss = 0;
#是否有绑定关系 0有 1无
$called_v2
=
$this
->
userDetailIsOutpaceCallNumPhone
(
$
result_
user_phone
,
$agent_id
);
$called_v2
=
$this
->
userDetailIsOutpaceCallNumPhone
(
$user_phone
,
$agent_id
);
if
(
$called_v2
==
0
)
$called
=
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