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
00cddc64
Commit
00cddc64
authored
Aug 22, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户跟进上下客户
parent
e2d07812
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
User.php
application/api_broker/controller/User.php
+10
-10
No files found.
application/api_broker/controller/User.php
View file @
00cddc64
...
@@ -503,10 +503,10 @@ class User extends Basic
...
@@ -503,10 +503,10 @@ class User extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
//
$checkResult = $this->validate($params, "UserGetLastOrNextUserIdPhoneFollowPuValidate.verifyStatus");
$checkResult
=
$this
->
validate
(
$params
,
"UserGetLastOrNextUserIdPhoneFollowPuValidate.verifyStatus"
);
//
if (true !== $checkResult) {
if
(
true
!==
$checkResult
)
{
//
return $this->response("300", $checkResult);
return
$this
->
response
(
"300"
,
$checkResult
);
//
}
}
// $params = array(
// $params = array(
// "id" => 1956,
// "id" => 1956,
...
@@ -617,10 +617,10 @@ class User extends Basic
...
@@ -617,10 +617,10 @@ class User extends Basic
}
}
// 判断当天被拨打是否超过5次
// 判断当天被拨打是否超过5次
//
$clientService = new ClientService();
$clientService
=
new
ClientService
();
//
if (!$clientService->dialTotal($model_res[0]['user_id'])) {
if
(
!
$clientService
->
dialTotal
(
$model_res
[
0
][
'user_id'
]))
{
//
return $this->response("201", "当天被拨打超过5次", ['user_id'=>$model_res[0]['id']]);
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'user_id'
=>
$model_res
[
0
][
'id'
]]);
//
}
}
//如果非客方
//如果非客方
if
(
$model_res
[
0
][
'agent_id'
]
!=
$params
[
'agent_id'
]){
if
(
$model_res
[
0
][
'agent_id'
]
!=
$params
[
'agent_id'
]){
...
@@ -641,9 +641,9 @@ class User extends Basic
...
@@ -641,9 +641,9 @@ class User extends Basic
return
$this
->
response
(
"201"
,
"24小时保护期内"
,
[
'id'
=>
$model_res
[
0
][
'id'
]]);
return
$this
->
response
(
"201"
,
"24小时保护期内"
,
[
'id'
=>
$model_res
[
0
][
'id'
]]);
}
}
}
}
// dump($model_res);exit();
// dump($model_res);exit();
$where
=
[];
$where
=
[];
// $where['city'] = trim($this->city);
// $where['city'] = trim($this->city);
$field
=
'max(a.id) as max_id'
;
$field
=
'max(a.id) as max_id'
;
$order
=
'a.id asc'
;
$order
=
'a.id asc'
;
$max_id
=
$model
->
getLastOrNextUserIDPhoneFollowP
(
$where
,
$field
,
$limit
=
''
,
$order
);
$max_id
=
$model
->
getLastOrNextUserIDPhoneFollowP
(
$where
,
$field
,
$limit
=
''
,
$order
);
...
...
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