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
6829c230
Commit
6829c230
authored
Aug 10, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示文案修改
parent
bbba456f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
User.php
application/api_broker/controller/User.php
+6
-6
No files found.
application/api_broker/controller/User.php
View file @
6829c230
...
...
@@ -191,7 +191,7 @@ class User extends Basic
return
$this
->
response
(
"300"
,
$checkResult
);
}
//
todo
判断是 杭州还是上海
// 判断是 杭州还是上海
$where
[
'city'
]
=
trim
(
$this
->
city
);
if
(
$params
[
'type'
]
==
'last'
)
{
$where
[
'id'
]
=
[
'gt'
,
$params
[
'user_id'
]
];
...
...
@@ -206,19 +206,19 @@ class User extends Basic
$user
=
new
Users
();
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
1
,
$order
);
if
(
!
$user_res
)
{
return
$this
->
response
(
"200"
,
"
不符合条件0
"
,
[]);
return
$this
->
response
(
"200"
,
"
查无数据
"
,
[]);
}
//
todo
判断是否vip客户,如果是 只有是当前经纪人自己的客户才能查看
// 判断是否vip客户,如果是 只有是当前经纪人自己的客户才能查看
//vip客户 0:否 1:是
if
((
$user_res
[
'vip'
]
==
1
)
&&
(
$user_res
[
'agent_id'
]
!=
$params
[
'agent_id'
]))
{
return
$this
->
response
(
"200"
,
"
不符合条件1
"
,
[]);
return
$this
->
response
(
"200"
,
"
vip 非客方
"
,
[]);
}
//
todo 判断
//
判断当天被拨打是否超过5次
$clientService
=
new
ClientService
();
if
(
!
$clientService
->
dialTotal
(
$params
[
'user_id'
]))
{
return
$this
->
response
(
"200"
,
"
不符合条件2
"
,
[]);
return
$this
->
response
(
"200"
,
"
当天被拨打超过5次
"
,
[]);
}
$where
=
[];
...
...
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