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
c79c0068
Commit
c79c0068
authored
Aug 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拨号返回
parent
0a3653af
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
CellPhone.php
application/api_broker/controller/CellPhone.php
+1
-0
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+8
-7
CellPhone.php
application/index/controller/CellPhone.php
+1
-0
No files found.
application/api_broker/controller/CellPhone.php
View file @
c79c0068
...
...
@@ -40,6 +40,7 @@ class CellPhone extends Basic
if
(
$result
[
'status'
]
==
'success'
)
{
$this
->
msg
=
$result
[
'msg'
];
$this
->
data
[
'phone'
]
=
$result
[
'phone'
];
$this
->
data
[
'follow_id'
]
=
$result
[
'follow_id'
];
}
else
{
$this
->
msg
=
$result
[
'msg'
];
$this
->
code
=
101
;
...
...
application/api_broker/service/CallPhoneService.php
View file @
c79c0068
...
...
@@ -108,11 +108,11 @@ class CallPhoneService
$result
[
'phone'
]
=
$phone_b
;
if
(
$landlord
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
}
else
{
if
(
$house_id
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(房源)
}
}
else
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
}
return
$result
;
...
...
@@ -132,12 +132,13 @@ class CallPhoneService
$result
[
'msg'
]
=
'已绑定,返回隐私号码。'
;
if
(
$landlord
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
}
else
{
if
(
$house_id
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(
客
源)
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(
房
源)
}
}
else
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
}
return
$result
;
//绑定过了,返回隐号
}
...
...
@@ -186,11 +187,11 @@ class CallPhoneService
$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
);
if
(
$landlord
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
}
else
{
if
(
$house_id
)
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(客源)
}
}
else
{
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(房源)
}
}
...
...
application/index/controller/CellPhone.php
View file @
c79c0068
...
...
@@ -165,6 +165,7 @@ class CellPhone extends Basic
$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'
];
}
else
{
$result
[
'status'
]
=
101
;
$result
[
'msg'
]
=
$data
[
'msg'
];
...
...
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