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
0a08638c
Commit
0a08638c
authored
Sep 23, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
87b8ee65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
UserLogService.php
application/index/service/UserLogService.php
+8
-3
No files found.
application/index/service/UserLogService.php
View file @
0a08638c
...
@@ -365,12 +365,17 @@ class UserLogService
...
@@ -365,12 +365,17 @@ class UserLogService
//3.3.9 如果有约带看 预计到场时间的前1小时和后1小时,除了提交约带看的经纪人和客方,其他人都无法联系客户(包括关联客户)!
//3.3.9 如果有约带看 预计到场时间的前1小时和后1小时,除了提交约带看的经纪人和客方,其他人都无法联系客户(包括关联客户)!
$front_see_time
=
strtotime
(
"-1 hour"
,
strtotime
(
$is_user_report
[
0
][
'predict_see_time'
]));
$front_see_time
=
strtotime
(
"-1 hour"
,
strtotime
(
$is_user_report
[
0
][
'predict_see_time'
]));
$behind_see_time
=
strtotime
(
"+1 hour"
,
strtotime
(
$is_user_report
[
0
][
'predict_see_time'
]));
$behind_see_time
=
strtotime
(
"+1 hour"
,
strtotime
(
$is_user_report
[
0
][
'predict_see_time'
]));
if
(
$is_user_report
&&
(
time
()
<
$behind_see_time
&&
(
time
()
>
$front_see_time
)))
{
big_log
(
'有约带看'
);
#客户是否在保护期内(0:保护器内 1:超过保护期)
$user_service
=
new
UserService
();
$is_outstrip_twenty_four_hours
=
$user_service
->
isUserProtect
(
$user_id
);
if
((
$is_outstrip_twenty_four_hours
==
1
)
&&
(
$is_user_report
&&
(
time
()
<
$behind_see_time
&&
(
time
()
>
$front_see_time
))))
{
big_log
(
"客户ID:
{
$user_id
}
有约带看"
);
$res
=
$this
->
isPhoneButtonShowA
(
$user_id
,
$agent_id
,
$is_vip
,
$result_user_phone
,
$result_agent_id
);
$res
=
$this
->
isPhoneButtonShowA
(
$user_id
,
$agent_id
,
$is_vip
,
$result_user_phone
,
$result_agent_id
);
}
else
{
}
else
{
//无约带看 走老逻辑
//无约带看 走老逻辑
big_log
(
'无约带看 走老逻辑'
);
big_log
(
"客户ID:
{
$user_id
}
无约带看 走老逻辑"
);
$res
=
$this
->
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$result_user_phone
,
$result_agent_id
);
$res
=
$this
->
isPhoneButtonShowB
(
$user_id
,
$agent_id
,
$is_vip
,
$result_user_phone
,
$result_agent_id
);
}
}
return
$res
;
return
$res
;
...
...
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