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
bd24475b
Commit
bd24475b
authored
Jan 11, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户电话跟进
parent
796dcbf8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Broker.php
application/api_broker/controller/Broker.php
+8
-5
UserLogService.php
application/index/service/UserLogService.php
+0
-1
No files found.
application/api_broker/controller/Broker.php
View file @
bd24475b
...
@@ -392,19 +392,22 @@ class Broker extends Basic
...
@@ -392,19 +392,22 @@ class Broker extends Basic
$params['user_status']='1';//0电话跟进 1普通跟进*/
$params['user_status']='1';//0电话跟进 1普通跟进*/
$checkResult
=
$this
->
validate
(
$params
,
"BrokerValidate.
verifyStatus
"
);
$checkResult
=
$this
->
validate
(
$params
,
"BrokerValidate.
add_phone_follow_up_verify
"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"300"
,
$checkResult
);
return
$this
->
response
(
"300"
,
$checkResult
);
}
}
$m_user
=
new
Users
();
$m_user_phone_follow_up
=
new
UPhoneFollowPp
(
$this
->
siteId
);
$result
=
$m_user_phone_follow_up
->
savePhoneFollow
(
$params
);
$user_id
=
$params
[
'user_id'
];
$user_status
=
$params
[
'user_status'
];
$Users
=
new
Users
();
$s_phone_follow_up
=
new
UPhoneFollowUpTemporary
(
$this
->
siteId
);
$result
=
$s_phone_follow_up
->
savePhoneFollow
(
$params
);
if
(
$result
>
0
)
{
if
(
$result
>
0
)
{
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
$
m_user
->
update_user_status
([
'id'
=>
$params
[
'user_id'
],
'user_status'
=>
$params
[
'user_status'
]
]);
$
Users
->
update_user_status
([
'id'
=>
$user_id
,
'user_status'
=>
$user_status
]);
$redis
=
RedisExt
::
getRedis
();
$redis
=
RedisExt
::
getRedis
();
$user_key
=
'call_phone_user_'
.
date
(
'Y-m-d'
);
$user_key
=
'call_phone_user_'
.
date
(
'Y-m-d'
);
...
...
application/index/service/UserLogService.php
View file @
bd24475b
...
@@ -381,7 +381,6 @@ class UserLogService
...
@@ -381,7 +381,6 @@ class UserLogService
*/
*/
public
function
userDetailFull
(
$user_id
)
public
function
userDetailFull
(
$user_id
)
{
{
//查询客户详情
//查询客户详情
$field
=
'id as user_id,agent_id,vip,create_time,first_login_time,referrer_source,referrer_id,registration_time,source_intro,referrer_source,source'
;
$field
=
'id as user_id,agent_id,vip,create_time,first_login_time,referrer_source,referrer_id,registration_time,source_intro,referrer_source,source'
;
$user_result
=
$this
->
userModel
->
getUserDetailStreamline
(
$user_id
,
$field
);
$user_result
=
$this
->
userModel
->
getUserDetailStreamline
(
$user_id
,
$field
);
...
...
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