Commit 799ea85f authored by zhuwei's avatar zhuwei

客户条件搜索 searchUser vip查看权限修改

parent 7c68756b
...@@ -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'] = '5775'; $params['agent_id'] = '5741';*/
if(empty($params['agent_id'])){ if(empty($params['agent_id'])){
......
...@@ -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);
} }
......
...@@ -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;
......
...@@ -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;
} }
/** /**
......
...@@ -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;
} }
} }
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment