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
f2ef85ee
Commit
f2ef85ee
authored
Jan 10, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model 7
parent
340cd57c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
Broker.php
application/api_broker/controller/Broker.php
+2
-2
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+2
-2
ClientService.php
application/api_broker/service/ClientService.php
+0
-1
Users.php
application/model/Users.php
+2
-2
No files found.
application/api_broker/controller/Broker.php
View file @
f2ef85ee
...
@@ -355,8 +355,8 @@ class Broker extends Basic
...
@@ -355,8 +355,8 @@ class Broker extends Basic
$user_status
=
$params
[
'user_status'
];
$user_status
=
$params
[
'user_status'
];
$Users
=
new
Users
();
$Users
=
new
Users
();
$
UPhoneFollowP
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$
s_phone_follow_u
p
=
new
UPhoneFollowUp
(
$this
->
siteId
);
$result
=
$
UPhoneFollowP
p
->
savePhoneFollow
(
$params
);
$result
=
$
s_phone_follow_u
p
->
savePhoneFollow
(
$params
);
if
(
$result
>
0
)
{
if
(
$result
>
0
)
{
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
//跟进,对客户状态进行更新 0:求租;1:已租;-1:无效
...
...
application/api_broker/service/CallPhoneService.php
View file @
f2ef85ee
...
@@ -15,7 +15,7 @@ use app\extra\RedisExt;
...
@@ -15,7 +15,7 @@ use app\extra\RedisExt;
use
app\model\AliYunPhone
;
use
app\model\AliYunPhone
;
use
app\model\BindingPhone
;
use
app\model\BindingPhone
;
use
app\model\SecretReport
;
use
app\model\SecretReport
;
use
app\model\UPhoneFollow
P
p
;
use
app\model\UPhoneFollow
U
p
;
use
app\model\Users
;
use
app\model\Users
;
use
think\Log
;
use
think\Log
;
...
@@ -562,7 +562,7 @@ class CallPhoneService
...
@@ -562,7 +562,7 @@ class CallPhoneService
if
(
empty
(
$array
[
2
])){
if
(
empty
(
$array
[
2
])){
$this
->
redis
->
hDel
(
$user_key
,
$v
);
$this
->
redis
->
hDel
(
$user_key
,
$v
);
}
else
{
}
else
{
$m_follow_up
=
new
UPhoneFollow
P
p
(
$array
[
2
]);
$m_follow_up
=
new
UPhoneFollow
U
p
(
$array
[
2
]);
$num
=
$m_follow_up
->
getFollowTotal
(
$follow_where
);
$num
=
$m_follow_up
->
getFollowTotal
(
$follow_where
);
if
(
empty
(
$num
)
&&
!
empty
(
$array
[
1
]))
{
if
(
empty
(
$num
)
&&
!
empty
(
$array
[
1
]))
{
//$agent_id, $user_id, $content, $type
//$agent_id, $user_id, $content, $type
...
...
application/api_broker/service/ClientService.php
View file @
f2ef85ee
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
namespace
app\api_broker\service
;
namespace
app\api_broker\service
;
use
app\extra\RedisExt
;
use
app\extra\RedisExt
;
use
app\model\UPhoneFollowPp
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
...
application/model/Users.php
View file @
f2ef85ee
...
@@ -162,7 +162,7 @@ class Users extends Model
...
@@ -162,7 +162,7 @@ class Users extends Model
->
select
();
->
select
();
}
}
//echo Db::table($this->table)->getLastSql();
//echo Db::table($this->table)->getLastSql();
$
user_follow
=
new
UPhoneFollowP
p
(
$site_id
);
$
s_phone_follow_up
=
new
UPhoneFollowU
p
(
$site_id
);
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
->
getData
();
$data
[
$k
]
=
$v
->
getData
();
...
@@ -179,7 +179,7 @@ class Users extends Model
...
@@ -179,7 +179,7 @@ class Users extends Model
$params_
[
'user_id'
]
=
$data
[
$k
][
'id'
];
$params_
[
'user_id'
]
=
$data
[
$k
][
'id'
];
$order
=
'id desc'
;
$order
=
'id desc'
;
$res
=
$
user_follow
->
getPhoneFollowData
(
'create_time'
,
$params_
,
$order
);
$res
=
$
s_phone_follow_up
->
getPhoneFollowData
(
'create_time'
,
$params_
,
$order
);
$data
[
$k
][
'follow_time'
]
=
$res
[
0
][
'create_time'
];
$data
[
$k
][
'follow_time'
]
=
$res
[
0
][
'create_time'
];
}
}
return
$data
;
return
$data
;
...
...
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