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
0ff85069
Commit
0ff85069
authored
Apr 21, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保护期修改
parent
36263042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+9
-3
UserLogService.php
application/index/service/UserLogService.php
+1
-2
No files found.
application/api_broker/controller/HomePageLog.php
View file @
0ff85069
...
@@ -8,6 +8,7 @@ use app\api_broker\service\RedisCacheService;
...
@@ -8,6 +8,7 @@ use app\api_broker\service\RedisCacheService;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\extra\RedisExt
;
use
app\extra\RedisExt
;
use
app\index\service\UserService
;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\GHouses
;
use
app\model\GHouses
;
use
app\model\GHousesFollowUp
;
use
app\model\GHousesFollowUp
;
...
@@ -131,7 +132,10 @@ class HomePageLog extends Basic
...
@@ -131,7 +132,10 @@ class HomePageLog extends Basic
$clientService
=
new
ClientService
();
$clientService
=
new
ClientService
();
$m_label
=
new
ULabels
();
$m_label
=
new
ULabels
();
$user_service
=
new
UserService
();
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
$label_data
=
$m_label
->
getColumn
(
'id,name'
,
[
'type'
=>
1
]);
//获取标签
foreach
(
$result
as
$key
=>
$value
)
{
foreach
(
$result
as
$key
=>
$value
)
{
$agent_params
=
[];
$agent_params
=
[];
$agent_params
[
"a.id"
]
=
$value
[
'agent_id'
];
$agent_params
[
"a.id"
]
=
$value
[
'agent_id'
];
...
@@ -145,9 +149,11 @@ class HomePageLog extends Basic
...
@@ -145,9 +149,11 @@ class HomePageLog extends Basic
$result
[
$key
][
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
$value
[
"create_time"
]
/
1000
);
$result
[
$key
][
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
$value
[
"create_time"
]
/
1000
);
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$ser
=
new
UserExpiredTimeService
();
// $ser = new UserExpiredTimeService();
$res
=
$ser
->
getExpiredTimeByUser
(
$value
[
'user_id'
]);
// $res = $ser->getExpiredTimeByUser($value['user_id']);
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$res
?
0
:
1
;
// $result[$key]['is_outstrip_twenty_four_hours'] = $res ? 0 : 1;
#保护期(0:保护器内 1:超过保护期)
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$user_service
->
isUserProtect
(
$value
[
'user_id'
]);
$is_show
=
$clientService
->
dialTotal
(
$value
[
"user_id"
]);
$is_show
=
$clientService
->
dialTotal
(
$value
[
"user_id"
]);
$result
[
$key
][
'sign_call'
]
=
$is_show
?
0
:
1
;
$result
[
$key
][
'sign_call'
]
=
$is_show
?
0
:
1
;
...
...
application/index/service/UserLogService.php
View file @
0ff85069
...
@@ -171,8 +171,7 @@ class UserLogService
...
@@ -171,8 +171,7 @@ class UserLogService
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$agent_id
);
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$agent_id
);
//绑定关系(关联客户)
//绑定关系(关联客户)
$s_index_user
=
new
UserService
();
$data
[
'user_bind_list'
]
=
$user_service
->
userBindInfo
(
$user_id
);
$data
[
'user_bind_list'
]
=
$s_index_user
->
userBindInfo
(
$user_id
);
/**
/**
* 以下是新方法,上面的找时间替换掉
* 以下是新方法,上面的找时间替换掉
...
...
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