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
d111c54f
Commit
d111c54f
authored
Apr 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨号缓存
parent
de8f7732
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+13
-3
No files found.
application/api_broker/service/CallPhoneService.php
View file @
d111c54f
...
@@ -86,7 +86,7 @@ class CallPhoneService
...
@@ -86,7 +86,7 @@ class CallPhoneService
if
(
!
empty
(
$user_id
))
{
if
(
!
empty
(
$user_id
))
{
$this
->
user_id
=
$user_id
;
$this
->
user_id
=
$user_id
;
$user_data
=
$this
->
getUserData
();
$user_data
=
$this
->
getUserData
V2
();
if
(
empty
(
$user_data
[
'user_phone'
]))
{
if
(
empty
(
$user_data
[
'user_phone'
]))
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
'没有用户信息'
;
$result
[
'msg'
]
=
'没有用户信息'
;
...
@@ -250,7 +250,7 @@ class CallPhoneService
...
@@ -250,7 +250,7 @@ class CallPhoneService
if
(
empty
(
$phone_b
))
{
if
(
empty
(
$phone_b
))
{
if
(
!
empty
(
$user_id
))
{
if
(
!
empty
(
$user_id
))
{
$this
->
user_id
=
$user_id
;
$this
->
user_id
=
$user_id
;
$user_data
=
$this
->
getUserData
();
$user_data
=
$this
->
getUserData
V2
();
if
(
empty
(
$user_data
[
'user_phone'
]))
{
if
(
empty
(
$user_data
[
'user_phone'
]))
{
$data
[
'status'
]
=
'failed'
;
$data
[
'status'
]
=
'failed'
;
$data
[
'msg'
]
=
'没有客户信息,可以忽略。'
;
$data
[
'msg'
]
=
'没有客户信息,可以忽略。'
;
...
@@ -345,7 +345,7 @@ class CallPhoneService
...
@@ -345,7 +345,7 @@ class CallPhoneService
if
(
empty
(
$phone_b
))
{
if
(
empty
(
$phone_b
))
{
if
(
!
empty
(
$user_id
))
{
if
(
!
empty
(
$user_id
))
{
$this
->
user_id
=
$user_id
;
$this
->
user_id
=
$user_id
;
$user_data
=
$this
->
getUserData
();
$user_data
=
$this
->
getUserData
V2
();
if
(
empty
(
$user_data
[
'user_phone'
]))
{
if
(
empty
(
$user_data
[
'user_phone'
]))
{
$data
[
'status'
]
=
'fail'
;
$data
[
'status'
]
=
'fail'
;
$data
[
'msg'
]
=
'没有客户信息,可以忽略。'
;
$data
[
'msg'
]
=
'没有客户信息,可以忽略。'
;
...
@@ -552,6 +552,16 @@ class CallPhoneService
...
@@ -552,6 +552,16 @@ class CallPhoneService
return
$data
;
return
$data
;
}
}
/**
* @return array|bool|false|mixed|\PDOStatement|string|\think\Model
*/
public
function
getUserDataV2
()
{
$redis_cache
=
new
RedisCacheService
();
$data
=
$redis_cache
->
getRedisCache
(
1
,
$this
->
user_id
);
return
$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