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
e023db39
Commit
e023db39
authored
Oct 16, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
85110be8
a7a2384a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+11
-10
Store.php
application/index/controller/Store.php
+1
-1
No files found.
application/api_broker/service/CallPhoneService.php
View file @
e023db39
...
@@ -122,21 +122,22 @@ class CallPhoneService
...
@@ -122,21 +122,22 @@ class CallPhoneService
$result
[
'phone'
]
=
$phone_b
;
$result
[
'phone'
]
=
$phone_b
;
return
$result
;
return
$result
;
}
}
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
;
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
$phone_x
=
$this
->
redis
->
get
(
$call_key
);
$phone_x
=
$this
->
redis
->
get
(
$call_key
);
$bind
=
new
BindingPhone
();
$bind
=
new
BindingPhone
();
if
(
empty
(
$phone_x
))
{
if
(
empty
(
$phone_x
)
&&
$this
->
is_privacy
==
1
)
{
$where
[
'a.status'
]
=
1
;
$where
[
'a.status'
]
=
1
;
$where
[
'a.phone_a'
]
=
$phone_a
;
$where
[
'a.phone_a'
]
=
$phone_a
;
$where
[
'a.phone_b'
]
=
$phone_b
;
$where
[
'a.phone_b'
]
=
$phone_b
;
$where
[
'a.type'
]
=
$this
->
is_privacy
;
$where
[
'a.type'
]
=
$this
->
is_privacy
;
$phone_x_arr
=
$bind
->
getPhoneX
(
'b.phone_x,a.subsId'
,
$where
);
//已经绑定的返回隐私号码
$phone_x_arr
=
$bind
->
getPhoneX
(
'b.phone_x,a.subsId'
,
$where
);
//已经绑定的返回隐私号码
//兼容
if
(
!
empty
(
$phone_x_arr
[
'subsId'
])
&&
$phone_x_arr
[
'phone_x'
])
{
$check_data
=
PlsDemo
::
querySubscriptionDetail
(
$phone_x_arr
[
'subsId'
],
$phone_x_arr
[
'phone_x'
]);
//兼容
if
(
$check_data
->
Code
==
'OK'
)
{
$check_data
=
PlsDemo
::
querySubscriptionDetail
(
$phone_x_arr
[
'subsId'
],
$phone_x_arr
[
'phone_x'
]);
$phone_x
=
$phone_x_arr
[
'phone_x'
];
if
(
$check_data
->
Code
==
'OK'
&&
$check_data
->
SecretBindDetailDTO
->
Status
==
1
)
{
$phone_x
=
$phone_x_arr
[
'phone_x'
];
}
}
}
}
}
...
@@ -172,7 +173,7 @@ class CallPhoneService
...
@@ -172,7 +173,7 @@ class CallPhoneService
$result
[
'phone'
]
=
$call_phone
[
'phone'
];
$result
[
'phone'
]
=
$call_phone
[
'phone'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$type
=
'AliYunBindAxb'
;
$type
=
'AliYunBindAxb'
;
$this
->
redis
->
set
(
$call_key
,
$call_phone
[
'phone'
],
strtotime
(
$this
->
expiry_date
));
$this
->
redis
->
set
(
$call_key
,
$call_phone
[
'phone'
],
strtotime
(
$this
->
expiry_date
)
-
time
()
);
$bind
->
recordBindPhone
(
$call_phone
[
'phone'
],
$phone_a
,
$phone_b
,
$record
,
$this
->
expiry_date
,
$this
->
subs_id
,
$this
->
request_id
,
$this
->
mapping_id
,
$this
->
is_privacy
,
$this
->
release
);
$bind
->
recordBindPhone
(
$call_phone
[
'phone'
],
$phone_a
,
$phone_b
,
$record
,
$this
->
expiry_date
,
$this
->
subs_id
,
$this
->
request_id
,
$this
->
mapping_id
,
$this
->
is_privacy
,
$this
->
release
);
}
else
{
}
else
{
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
...
@@ -185,7 +186,7 @@ class CallPhoneService
...
@@ -185,7 +186,7 @@ class CallPhoneService
$result
[
'phone'
]
=
$call_phone
[
'phone'
];
$result
[
'phone'
]
=
$call_phone
[
'phone'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$type
=
'YunTongXunBindAxb'
;
$type
=
'YunTongXunBindAxb'
;
$this
->
redis
->
set
(
$call_key
,
$call_phone
[
'phone'
],
strtotime
(
$this
->
expiry_date
));
$this
->
redis
->
set
(
$call_key
,
$call_phone
[
'phone'
],
strtotime
(
$this
->
expiry_date
)
-
time
()
);
$bind
->
recordBindPhone
(
$call_phone
[
'phone'
],
$phone_a
,
$phone_b
,
$record
,
$this
->
expiry_date
,
$this
->
subs_id
,
$this
->
request_id
,
$this
->
mapping_id
,
$this
->
is_privacy
,
$this
->
release
);
$bind
->
recordBindPhone
(
$call_phone
[
'phone'
],
$phone_a
,
$phone_b
,
$record
,
$this
->
expiry_date
,
$this
->
subs_id
,
$this
->
request_id
,
$this
->
mapping_id
,
$this
->
is_privacy
,
$this
->
release
);
}
else
{
}
else
{
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
$result
[
'msg'
]
=
$call_phone
[
'msg'
];
...
@@ -349,7 +350,7 @@ class CallPhoneService
...
@@ -349,7 +350,7 @@ class CallPhoneService
}
}
$phone
=
new
BindingPhone
();
$phone
=
new
BindingPhone
();
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
;
$call_key
=
'call_'
.
$agent_id
.
'_'
.
$this
->
phone_a
.
'_'
.
$this
->
phone_b
.
'_'
.
$this
->
is_privacy
;
try
{
try
{
if
(
$this
->
is_privacy
==
1
)
{
if
(
$this
->
is_privacy
==
1
)
{
/*阿里云*/
/*阿里云*/
...
...
application/index/controller/Store.php
View file @
e023db39
...
@@ -49,7 +49,7 @@ class Store extends Basic
...
@@ -49,7 +49,7 @@ class Store extends Basic
//店长姓名
//店长姓名
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
if
(
!
empty
(
$this
->
params
[
'agents_name'
]))
{
$where
[
'b.name'
]
=
[
'LIKE'
,
$this
->
params
[
'agents_name'
]
.
'%'
];
$where
[
'b.name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'agents_name'
]
.
'%'
];
$join
=
1
;
//连表查询店长名
$join
=
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