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
00a93fa4
Commit
00a93fa4
authored
Aug 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台拨打接口调整
parent
80778afd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
CellPhone.php
application/index/controller/CellPhone.php
+5
-4
user.js
public/resource/js/user.js
+2
-2
No files found.
application/index/controller/CellPhone.php
View file @
00a93fa4
...
...
@@ -150,22 +150,23 @@ class CellPhone extends Basic
$user_id
=
0
;
$phone_b
=
0
;
if
(
empty
(
$this
->
params
[
'phone_b'
]))
{
$user_id
=
$this
->
params
[
'user_id'
];
$user_id
=
(
int
)
$this
->
params
[
'user_id'
];
}
else
{
$phone_b
=
$this
->
params
[
'phone_b'
];
}
$house_id
=
empty
(
$this
->
params
[
'house_id'
])
?
0
:
(
int
)
$this
->
params
[
'house_id'
];
$landlord
=
empty
(
$this
->
params
[
'landlord'
])
?
0
:
(
int
)
$this
->
params
[
'landlord'
];
$record
=
true
;
//录音
$call_phone
=
new
CallPhoneService
(
$this
->
city
);
$data
=
$call_phone
->
bindAXB
(
$this
->
params
[
'phone_a'
],
$phone_b
,
$record
,
$user_id
,
$this
->
userId
,
$this
->
userName
,
$house_id
);
$data
=
$call_phone
->
bindAXB
(
$this
->
params
[
'phone_a'
],
$phone_b
,
$record
,
$user_id
,
$this
->
userId
,
$this
->
userName
,
$
landlord
,
$
house_id
);
$result
[
'msg'
]
=
''
;
if
(
$data
[
'status'
]
==
'success'
)
{
$push
=
new
PushMessageService
();
$push
->
pushMessageById
(
$this
->
userId
,
'客户详情'
,
'后台拨打电话推送客户详情'
,
'user_info'
,
$this
->
params
[
'user_id'
]);
$result
[
'code'
]
=
200
;
$result
[
'
data'
][
'
phone'
]
=
$data
[
'phone'
];
$result
[
'
data'
][
'
follow_id'
]
=
$data
[
'follow_id'
];
$result
[
'phone'
]
=
$data
[
'phone'
];
$result
[
'follow_id'
]
=
$data
[
'follow_id'
];
}
else
{
$result
[
'status'
]
=
101
;
$result
[
'msg'
]
=
$data
[
'msg'
];
...
...
public/resource/js/user.js
View file @
00a93fa4
...
...
@@ -772,7 +772,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
function
freePhone
(
obj
){
$
.
ajax
({
type
:
'POST'
,
url
:
'/
broker
/agentsUnBind'
,
url
:
'/
index
/agentsUnBind'
,
data
:
{
'AuthToken'
:
_token
,
'phone_x'
:
_backPhone
,
...
...
@@ -989,7 +989,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
if
(
_selectPhone
&&
user
.
customerInfo
.
user_phone
){
$
.
ajax
({
type
:
'POST'
,
url
:
'/
broker
/bindAXB'
,
url
:
'/
index
/bindAXB'
,
data
:
{
'AuthToken'
:
_token
,
'phone_a'
:
_selectPhone
,
...
...
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