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
799ea85f
Commit
799ea85f
authored
Jul 13, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户条件搜索 searchUser vip查看权限修改
parent
7c68756b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
7 deletions
+14
-7
Client.php
application/api_broker/controller/Client.php
+2
-2
User.php
application/api_broker/controller/User.php
+1
-1
VipService.php
application/api_broker/service/VipService.php
+3
-1
AAgents.php
application/model/AAgents.php
+2
-1
AuthGroup.php
application/model/AuthGroup.php
+2
-1
AuthRule.php
application/model/AuthRule.php
+4
-1
No files found.
application/api_broker/controller/Client.php
View file @
799ea85f
...
@@ -154,8 +154,8 @@ class Client extends Basic
...
@@ -154,8 +154,8 @@ class Client extends Basic
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
//当前时间
$time
=
date
(
"Y-m-d H:i:s"
,
time
());
//当前时间
$params
=
$this
->
request
->
param
();
$params
=
$this
->
request
->
param
();
$params
[
'type'
]
=
0
;
/*
$params['type'] = 0;
$params
[
'agent_id'
]
=
'57
75'
;
$params['agent_id'] = '57
41';*/
if
(
empty
(
$params
[
'agent_id'
])){
if
(
empty
(
$params
[
'agent_id'
])){
...
...
application/api_broker/controller/User.php
View file @
799ea85f
...
@@ -123,7 +123,7 @@ class User extends Basic
...
@@ -123,7 +123,7 @@ class User extends Basic
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
$vip_services
=
new
VipService
();
$vip_services
=
new
VipService
();
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$params
[
'
agent
_id'
]);
$data
[
'examine_vip'
]
=
$vip_services
->
vip
(
$params
[
'
user
_id'
]);
$data
[
'user_date'
]
=
$userList
;
$data
[
'user_date'
]
=
$userList
;
return
$this
->
response
(
"200"
,
'request success'
,
$data
);
return
$this
->
response
(
"200"
,
'request success'
,
$data
);
}
}
...
...
application/api_broker/service/VipService.php
View file @
799ea85f
...
@@ -25,7 +25,7 @@ class VipService
...
@@ -25,7 +25,7 @@ class VipService
$agent
=
new
AAgents
();
$agent
=
new
AAgents
();
$fields
=
'auth_group_id'
;
$fields
=
'auth_group_id'
;
$auth_group_id
=
$agent
->
getAgentsById
(
$id
,
$fields
);
$auth_group_id
=
$agent
->
getAgentsById
(
$id
,
$fields
);
//var_dump($auth_group_id);
$auth_group
=
New
AuthGroup
();
$auth_group
=
New
AuthGroup
();
$id
=
$auth_group_id
;
$id
=
$auth_group_id
;
...
@@ -39,6 +39,8 @@ class VipService
...
@@ -39,6 +39,8 @@ class VipService
$rules_arr
=
explode
(
','
,
$rules
);
$rules_arr
=
explode
(
','
,
$rules
);
//dump($rules_arr);
if
(
in_array
(
$sauth_ruel_id
,
$rules_arr
))
{
if
(
in_array
(
$sauth_ruel_id
,
$rules_arr
))
{
return
0
;
return
0
;
...
...
application/model/AAgents.php
View file @
799ea85f
...
@@ -574,7 +574,8 @@ class AAgents extends BaseModel
...
@@ -574,7 +574,8 @@ class AAgents extends BaseModel
*/
*/
public
function
getAgentsById
(
$id
,
$fields
)
public
function
getAgentsById
(
$id
,
$fields
)
{
{
return
$this
->
where
(
'id'
,
$id
)
->
value
(
$fields
);
$return
=
$this
->
where
(
'id'
,
$id
)
->
value
(
$fields
);
return
$return
;
}
}
/**
/**
...
...
application/model/AuthGroup.php
View file @
799ea85f
...
@@ -242,6 +242,7 @@ class AuthGroup extends BaseModel
...
@@ -242,6 +242,7 @@ class AuthGroup extends BaseModel
*/
*/
public
function
getAuthGroupById
(
$id
,
$fields
)
public
function
getAuthGroupById
(
$id
,
$fields
)
{
{
return
$this
->
where
(
'id'
,
$id
)
->
value
(
$fields
);
$return
=
$this
->
where
(
'id'
,
$id
)
->
value
(
$fields
);
return
$return
;
}
}
}
}
application/model/AuthRule.php
View file @
799ea85f
...
@@ -205,6 +205,8 @@ class AuthRule extends BaseModel
...
@@ -205,6 +205,8 @@ class AuthRule extends BaseModel
*/
*/
public
function
getAuthRuleByName
(
$name
,
$fields
)
public
function
getAuthRuleByName
(
$name
,
$fields
)
{
{
return
$this
->
where
(
'name'
,
$name
)
->
value
(
$fields
);
$return
=
$this
->
where
(
'name'
,
$name
)
->
value
(
$fields
);
return
$return
;
}
}
}
}
\ No newline at end of file
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