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
21633cfc
Commit
21633cfc
authored
Aug 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释
parent
f4da158b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+21
-21
No files found.
application/api_broker/service/CallPhoneService.php
View file @
21633cfc
...
@@ -107,13 +107,13 @@ class CallPhoneService
...
@@ -107,13 +107,13 @@ class CallPhoneService
$result
[
'status'
]
=
'success'
;
$result
[
'status'
]
=
'success'
;
$result
[
'phone'
]
=
$phone_b
;
$result
[
'phone'
]
=
$phone_b
;
if
(
$landlord
)
{
//
if ($landlord) {
if
(
$house_id
)
{
//
if ($house_id) {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(房源)
//
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(房源)
}
//
}
}
else
{
//
} else {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
//
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
}
//
}
return
$result
;
return
$result
;
}
}
...
@@ -131,13 +131,13 @@ class CallPhoneService
...
@@ -131,13 +131,13 @@ class CallPhoneService
$result
[
'phone'
]
=
$phone_x
[
'phone_x'
];
$result
[
'phone'
]
=
$phone_x
[
'phone_x'
];
$result
[
'msg'
]
=
'已绑定,返回隐私号码。'
;
$result
[
'msg'
]
=
'已绑定,返回隐私号码。'
;
if
(
$landlord
)
{
//
if ($landlord) {
if
(
$house_id
)
{
//
if ($house_id) {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(房源)
//
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(房源)
}
//
}
}
else
{
//
} else {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(客源)
//
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(客源)
}
//
}
return
$result
;
//绑定过了,返回隐号
return
$result
;
//绑定过了,返回隐号
}
}
...
@@ -186,13 +186,13 @@ class CallPhoneService
...
@@ -186,13 +186,13 @@ class CallPhoneService
if
(
$result
[
'status'
]
==
'success'
)
{
if
(
$result
[
'status'
]
==
'success'
)
{
$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
);
if
(
$landlord
)
{
//
if ($landlord) {
if
(
$house_id
)
{
//
if ($house_id) {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
(
false
,
$house_id
);
//打默认跟进(客源)
//
$result['follow_id'] = $this->addPhoneFollow(false, $house_id); //打默认跟进(客源)
}
//
}
}
else
{
//
} else {
$result
[
'follow_id'
]
=
$this
->
addPhoneFollow
();
//打默认跟进(房源)
//
$result['follow_id'] = $this->addPhoneFollow(); //打默认跟进(房源)
}
//
}
}
}
Log
::
write
(
json_encode
(
$result
),
$type
);
//记录日志
Log
::
write
(
json_encode
(
$result
),
$type
);
//记录日志
...
...
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