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
dbe18d36
Commit
dbe18d36
authored
Apr 21, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
d412dd7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
20 deletions
+11
-20
HomePageLog.php
application/api_broker/controller/HomePageLog.php
+9
-12
UserLogService.php
application/index/service/UserLogService.php
+2
-8
No files found.
application/api_broker/controller/HomePageLog.php
View file @
dbe18d36
...
...
@@ -8,6 +8,7 @@ use app\api_broker\service\RedisCacheService;
use
app\api_broker\service\UserExpiredTimeService
;
use
app\api_broker\service\VerifyRepetitionService
;
use
app\extra\RedisExt
;
use
app\index\service\UserService
;
use
app\model\AAgents
;
use
app\model\GHouses
;
use
app\model\GHousesFollowUp
;
...
...
@@ -134,16 +135,9 @@ class HomePageLog extends Basic
$redis_service
=
new
RedisCacheService
();
// $label_data = $m_label->getColumn('id,name', ['type' => 1]); //获取标签
$label_data
=
$redis_service
->
userCallLabelCache
();
foreach
(
$result
as
$key
=>
$value
)
{
// $agent_params = [];
// $agent_params["a.id"] = $value['agent_id'];
// $agent_field = "a.name,a.img,b.store_name";
// $model = new AAgents();
// $res_a = $model->getAgentsInfo($agent_field, $agent_params);
// $result[$key]['name'] = $res_a[0]['name'];
// $result[$key]['img'] = $res_a[0]['img'];
// $result[$key]['store_name'] = $res_a[0]['store_name'];
$user_service
=
new
UserService
();
foreach
(
$result
as
$key
=>
$value
)
{
if
(
$value
[
'agent_id'
])
{
$res_a
=
$redis_service
->
getRedisCache
(
2
,
$value
[
'agent_id'
]);
$result
[
$key
][
'name'
]
=
$res_a
[
'name'
];
...
...
@@ -159,9 +153,12 @@ class HomePageLog extends Basic
$result
[
$key
][
'create_time'
]
=
date
(
"Y-m-d H:i:s"
,
$value
[
"create_time"
]
/
1000
);
//判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期
$ser
=
new
UserExpiredTimeService
();
$res
=
$ser
->
getExpiredTimeByUser
(
$value
[
'user_id'
]);
$result
[
$key
][
'is_outstrip_twenty_four_hours'
]
=
$res
?
0
:
1
;
// $ser = new UserExpiredTimeService();
// $res = $ser->getExpiredTimeByUser($value['user_id']);
// $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"
]);
$result
[
$key
][
'sign_call'
]
=
$is_show
?
0
:
1
;
...
...
application/index/service/UserLogService.php
View file @
dbe18d36
...
...
@@ -137,15 +137,9 @@ class UserLogService
}
/*是否被收藏 end*/
/*判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期 start*/
//查询客户是否在保护期内
#保护期(0:保护器内 1:超过保护期)
$user_service
=
new
UserService
();
$is_outstrip_twenty_four_hours
=
$user_service
->
isUserProtect
(
$user_id
);
$data
[
'is_outstrip_twenty_four_hours'
]
=
$is_outstrip_twenty_four_hours
;
/*判断客户是否超过24小时保护期间 0:保护器内 1:超过保护期 end*/
$data
[
'is_outstrip_twenty_four_hours'
]
=
$user_service
->
isUserProtect
(
$user_id
);
// 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定
//0允许拨打 1不允许拨打
...
...
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