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
77e7fea9
Commit
77e7fea9
authored
Aug 21, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
容联云绑定
parent
3321bb9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
15 deletions
+30
-15
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+29
-14
user.js
public/resource/js/user.js
+1
-1
No files found.
application/api_broker/service/CallPhoneService.php
View file @
77e7fea9
...
@@ -53,18 +53,9 @@ class CallPhoneService
...
@@ -53,18 +53,9 @@ class CallPhoneService
public
function
bindAXB
(
$phone_a
,
$phone_b
,
$record
=
true
,
int
$user_id
)
public
function
bindAXB
(
$phone_a
,
$phone_b
,
$record
=
true
,
int
$user_id
)
{
{
$result
[
'status'
]
=
'failed'
;
$result
[
'status'
]
=
'failed'
;
if
(
empty
(
$phone_a
)
||
empty
(
$phone_b
))
{
$result
[
'msg'
]
=
'参数错误,请联系运营人员!'
;
return
$result
;
}
if
(
strlen
(
$phone_a
)
!=
11
)
{
if
(
strlen
(
$phone_a
)
!=
11
)
{
$result
[
'msg'
]
=
'本机号码格式错误!'
;
$result
[
'msg'
]
=
'本机号码格式错误,请重新编辑!'
;
return
$result
;
}
if
(
strlen
(
$phone_b
)
!=
11
)
{
$result
[
'msg'
]
=
'客户手机号码格式错误,请与客方沟通!'
;
return
$result
;
return
$result
;
}
}
...
@@ -77,6 +68,22 @@ class CallPhoneService
...
@@ -77,6 +68,22 @@ class CallPhoneService
$phone_b
=
$user_data
[
'user_phone'
];
$phone_b
=
$user_data
[
'user_phone'
];
}
}
if
(
empty
(
$phone_a
))
{
$result
[
'msg'
]
=
'参数错误(A),请截图联系运营人员!'
;
return
$result
;
}
if
(
empty
(
$phone_b
))
{
$result
[
'msg'
]
=
'参数错误(B),请截图联系运营人员!'
;
return
$result
;
}
if
(
strlen
(
$phone_b
)
!=
11
)
{
$result
[
'msg'
]
=
'客户手机号码格式错误,请与客方沟通!'
;
return
$result
;
}
$call_phone
=
[];
$call_phone
=
[];
$this
->
phone_a
=
$phone_a
;
//经纪人手机号
$this
->
phone_a
=
$phone_a
;
//经纪人手机号
$this
->
phone_b
=
$phone_b
;
//客户手机号
$this
->
phone_b
=
$phone_b
;
//客户手机号
...
@@ -174,7 +181,7 @@ class CallPhoneService
...
@@ -174,7 +181,7 @@ class CallPhoneService
{
{
$data
[
'status'
]
=
'success'
;
$data
[
'status'
]
=
'success'
;
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
if
(
empty
(
$phone_x
)
||
empty
(
$phone_b
)
)
{
if
(
empty
(
$phone_x
))
{
$data
[
'status'
]
=
'failed'
;
$data
[
'status'
]
=
'failed'
;
$data
[
'msg'
]
=
'解除失败,请联系运营人员!'
;
$data
[
'msg'
]
=
'解除失败,请联系运营人员!'
;
return
$data
;
return
$data
;
...
@@ -205,6 +212,12 @@ class CallPhoneService
...
@@ -205,6 +212,12 @@ class CallPhoneService
$this
->
phone_b
=
$phone_b
;
$this
->
phone_b
=
$phone_b
;
}
}
if
(
empty
(
$this
->
phone_b
))
{
$data
[
'status'
]
=
'failed'
;
$data
[
'msg'
]
=
'解除失败,请联系运营人员!'
;
return
$data
;
}
$phone
=
new
BindingPhone
();
$phone
=
new
BindingPhone
();
try
{
try
{
...
@@ -328,9 +341,11 @@ class CallPhoneService
...
@@ -328,9 +341,11 @@ class CallPhoneService
}
}
}
}
//绑定失败返回错误信息
if
(
$data
[
'status'
]
!=
'success'
)
{
$data
[
'status'
]
=
'failed'
;
//绑定失败返回错误信息
$data
[
'msg'
]
=
'拨号失败,15秒再试,再无法拨号请联系请联系运营人员!'
;
$data
[
'status'
]
=
'failed'
;
$data
[
'msg'
]
=
'拨号失败,15秒再试,再无法拨号请联系请联系运营人员!'
;
}
}
}
return
$data
;
return
$data
;
...
...
public/resource/js/user.js
View file @
77e7fea9
...
@@ -698,7 +698,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -698,7 +698,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
function
freePhone
(
obj
){
function
freePhone
(
obj
){
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
ServerHostTempC
+
'/index/agentsUnBind'
,
url
:
'/index/agentsUnBind'
,
data
:
{
data
:
{
'AuthToken'
:
_token
,
'AuthToken'
:
_token
,
'phone_x'
:
_backPhone
,
'phone_x'
:
_backPhone
,
...
...
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