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
ef3838a9
Commit
ef3838a9
authored
Sep 23, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ab427e20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
AmercementService.php
application/index/service/AmercementService.php
+0
-3
UserCallStintService.php
application/index/service/UserCallStintService.php
+0
-8
UserLogService.php
application/index/service/UserLogService.php
+0
-10
No files found.
application/index/service/AmercementService.php
View file @
ef3838a9
...
@@ -691,12 +691,9 @@ class AmercementService
...
@@ -691,12 +691,9 @@ class AmercementService
public
function
updatePayAmercement
(
$trade_no
,
$status
,
$remark
)
public
function
updatePayAmercement
(
$trade_no
,
$status
,
$remark
)
{
{
$amercementPayModel
=
new
OAmercementPayModel
();
$amercementPayModel
=
new
OAmercementPayModel
();
big_log
(
'status'
.
$status
);
big_log
(
'trade_no'
.
$trade_no
);
//罚款记录改已支付
//罚款记录改已支付
if
(
$status
==
1
){
if
(
$status
==
1
){
$payInfo
=
$amercementPayModel
->
getAmercementPayInfo
([
'trade_no'
=>
$trade_no
],
"amercement_id"
);
$payInfo
=
$amercementPayModel
->
getAmercementPayInfo
([
'trade_no'
=>
$trade_no
],
"amercement_id"
);
big_log
(
$payInfo
);
if
(
isset
(
$payInfo
[
'amercement_id'
])
&&
$payInfo
[
'amercement_id'
]
>
0
){
if
(
isset
(
$payInfo
[
'amercement_id'
])
&&
$payInfo
[
'amercement_id'
]
>
0
){
$data
=
[];
$data
=
[];
$data
[
'id'
]
=
$payInfo
[
'amercement_id'
];
$data
[
'id'
]
=
$payInfo
[
'amercement_id'
];
...
...
application/index/service/UserCallStintService.php
View file @
ef3838a9
...
@@ -34,23 +34,15 @@ class UserCallStintService
...
@@ -34,23 +34,15 @@ class UserCallStintService
* @return int
* @return int
*/
*/
public
function
isUserReport
(
$user_id
){
public
function
isUserReport
(
$user_id
){
big_log
(
"+++++++++++++++客户ID:
{
$user_id
}
+++++++++++++++++++"
);
$is_report
=
[];
$is_report
=
[];
$band_user_list
=
$this
->
getUserBindList
(
$user_id
);
$band_user_list
=
$this
->
getUserBindList
(
$user_id
);
big_log
(
'关联客户'
);
big_log
(
$band_user_list
);
foreach
(
$band_user_list
as
$v
)
{
foreach
(
$band_user_list
as
$v
)
{
$res
=
$this
->
findReport
(
$v
);
$res
=
$this
->
findReport
(
$v
);
big_log
(
"客户ID:
{
$v
}
当天是否有约带看"
);
big_log
(
$res
);
if
(
$res
){
if
(
$res
){
$is_report
=
$res
;
$is_report
=
$res
;
break
;
break
;
}
}
}
}
big_log
(
'关联客户'
);
big_log
(
'++++++++++++++++++++++++++++++++++'
);
return
$is_report
;
return
$is_report
;
}
}
...
...
application/index/service/UserLogService.php
View file @
ef3838a9
...
@@ -391,23 +391,14 @@ class UserLogService
...
@@ -391,23 +391,14 @@ 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'
]));
big_log
(
$is_user_report
[
0
][
'predict_see_time'
]);
#客户是否在保护期内(0:保护器内 1:超过保护期)
#客户是否在保护期内(0:保护器内 1:超过保护期)
$user_service
=
new
UserService
();
$user_service
=
new
UserService
();
$is_outstrip_twenty_four_hours
=
$user_service
->
isUserProtect
(
$user_id
);
$is_outstrip_twenty_four_hours
=
$user_service
->
isUserProtect
(
$user_id
);
big_log
(
'客户是否在保护期内'
.
$is_outstrip_twenty_four_hours
);
big_log
(
$is_user_report
);
big_log
(
date
(
"Y-m-d H:i:s"
,
$front_see_time
));
big_log
(
time
());
big_log
(
date
(
"Y-m-d H:i:s"
));
big_log
(
date
(
"Y-m-d H:i:s"
,
$behind_see_time
));
if
((
$is_outstrip_twenty_four_hours
==
1
)
&&
(
$is_user_report
&&
(
time
()
<
$behind_see_time
&&
(
time
()
>
$front_see_time
))))
{
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
(
"客户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
;
...
@@ -427,7 +418,6 @@ class UserLogService
...
@@ -427,7 +418,6 @@ class UserLogService
#当天有约带看的客户 0:不显示 1:显示
#当天有约带看的客户 0:不显示 1:显示
$s_user_call
=
new
UserCallStintService
();
$s_user_call
=
new
UserCallStintService
();
$report_agents
=
$s_user_call
->
getUserReportAgentIdList
(
$user_id
);
$report_agents
=
$s_user_call
->
getUserReportAgentIdList
(
$user_id
);
big_log
(
$report_agents
);
//3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话
//3.3.9 有约带看订单的客户 预计到场当天 只能 约带看提交人 或 客方 拨打电话
if
((
$result_agent_id
==
$agent_id
)
or
(
in_array
(
$agent_id
,
$report_agents
)))
{
if
((
$result_agent_id
==
$agent_id
)
or
(
in_array
(
$agent_id
,
$report_agents
)))
{
return
0
;
return
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