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
44a50ac8
Commit
44a50ac8
authored
Oct 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
16a3697d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
35 deletions
+20
-35
Remark.php
application/index/controller/Remark.php
+20
-35
No files found.
application/index/controller/Remark.php
View file @
44a50ac8
...
@@ -145,45 +145,30 @@ class Remark extends Basic
...
@@ -145,45 +145,30 @@ class Remark extends Basic
//}
//}
if
(
$is_outpace_call_num
==
1
)
{
if
(
$is_outpace_call_num
==
1
)
{
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
empty
(
$result
[
0
][
'phone'
]))
{
if
(
empty
(
$result
[
0
][
'phone'
]))
{
$m_agent_phone
=
new
AAgentsPhone
();
$m_agent_phone
=
new
AAgentsPhone
();
$agent_phone
=
$m_agent_phone
->
getList
(
1
,
1
,
''
,
'phone'
,
[
'agent_id'
=>
$this
->
userId
]);
$agent_phone
=
$m_agent_phone
->
getList
(
1
,
1
,
''
,
'phone'
,
[
'agent_id'
=>
$this
->
userId
]);
$phone
=
$agent_phone
[
0
][
'phone'
];
$phone
=
$agent_phone
[
0
][
'phone'
];
}
else
{
}
else
{
$phone
=
$result
[
0
][
'phone'
];
$phone
=
$result
[
0
][
'phone'
];
}
}
$call_key
=
'call_'
.
$this
->
userId
.
'_'
.
$phone
.
'_'
.
$v
[
'user_phone'
]
.
'_'
.
$is_privacy
;
$call_key
=
'call_'
.
$this
->
userId
.
'_'
.
$phone
.
'_'
.
$v
[
'user_phone'
]
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
empty
(
$redis_res
))
{
$is_outpace_call_num
=
1
;
if
(
$is_outpace_call_num
==
1
)
{
$is_privacy
=
$redis
->
get
(
's_is_privacy'
);
//判断是否当前经纪人跟当前客户是否有电话绑定 从redis查询
if
(
empty
(
$result
[
0
][
'phone'
]))
{
$m_agent_phone
=
new
AAgentsPhone
();
$agent_phone
=
$m_agent_phone
->
getList
(
1
,
1
,
''
,
'phone'
,
[
'agent_id'
=>
$this
->
userId
]);
$phone
=
$agent_phone
[
0
][
'phone'
];
}
else
{
$phone
=
$result
[
0
][
'phone'
];
}
$call_key
=
'call_'
.
$this
->
userId
.
'_'
.
$phone
.
'_'
.
$v
[
'user_phone'
]
.
'_'
.
$is_privacy
;
$redis_res
=
$redis
->
get
(
$call_key
);
if
(
empty
(
$redis_res
))
{
$is_outpace_call_num
=
1
;
}
}
}
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
$data
[
'data'
][
'list'
][
$k
][
'user_phone'
]
=
substr_replace
(
$data
[
'data'
][
'list'
][
$k
][
'user_phone'
],
'****'
,
3
,
4
);
}
}
$data
[
'data'
][
'total'
]
=
40000
;
$data
[
'data'
][
'list'
][
$k
][
'is_outpace_call_num'
]
=
$is_outpace_call_num
;
return
$this
->
response
(
200
,
'成功'
,
$data
);
/* 判断当天被拨打是否超过5次,同时判断是否当前经纪人跟当前客户是否有电话绑定 end*/
$data
[
'data'
][
'list'
][
$k
][
'user_phone'
]
=
substr_replace
(
$data
[
'data'
][
'list'
][
$k
][
'user_phone'
],
'****'
,
3
,
4
);
}
}
$data
[
'data'
][
'total'
]
=
40000
;
return
$this
->
response
(
200
,
'成功'
,
$data
);
}
}
/**
/**
...
...
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