Commit 17ad3691 authored by zfc's avatar zfc

登录合并

parent f383d40f
......@@ -160,7 +160,7 @@ class Agent extends Basic
}
$table= New AAgents;
if($table->saveStatus($data['name'],$data['k'],$ids)){
if($table->saveStatus('status',$data['status'],$ids)){
return $this->response(200,'成功',$data);
}else{
return $this->response(100,'失败',$data);
......
......@@ -57,6 +57,7 @@ class Login extends Basic
Session::set("userName",$result[0]["name"]);
Session::set("userId",$result[0]["id"]);
Session::set("usertable",'admin');
Session::set("lastLoginTime",time());
$this->operating_records($result[0]["id"],1,'后台登陆'); //记录操作日志
$this->redirect('/admin.php/index/banner');
......@@ -115,6 +116,7 @@ class Login extends Basic
Session::set("userName",$list["name"]);
Session::set("userId",$list["id"]);
Session::set("userinfo",$list2);
Session::set("usertable",'agent');
Session::set("lastLoginTime",time());
$this->operating_records($list["id"],1,'后台登陆'); //记录操作日志
......
......@@ -61,7 +61,12 @@ class Basic extends Controller
$this->userVerify();
}
$this->userAuth($requestPath);
$t=Session::get("usertable");
if(trim($t)=='agent'){
$this->userAuth($requestPath);
}
}
/**
......
......@@ -97,12 +97,12 @@ Route::group('index', [
'authClass'=>['index/auth/authClass', ['method' => 'get']], //--规则分类列表
'navigation'=>['index/Basic/navigation', ['method' => 'get']], //--规则分类列表
'agent'=>['index/agent/agent', ['method' => 'get']], //列表
'saveAgentIndex'=>['index/agent/saveAgentIndex', ['method' => 'get']], //列表
'AgentList'=>['index/agent/AgentList', ['method' => 'get']], //列表
'saveAgent'=>['index/agent/saveAgent', ['method' => 'get|post']], //列表
'updateStatus'=>['index/agent/updateStatus', ['method' => 'get']], //列表
'updateRole'=>['index/agent/updateRole', ['method' => 'post']], //经纪人角色修改接口
'agent'=>['index/agent/agent', ['method' => 'get']], //首页列表界面
'saveAgentIndex'=>['index/agent/saveAgentIndex', ['method' => 'get']], //编辑列表列表界面
'AgentList'=>['index/agent/AgentList', ['method' => 'get']], //首页列表【接口】
'saveAgent'=>['index/agent/saveAgent', ['method' => 'get|post']], //修改经纪人【接口】
'updateStatus'=>['index/agent/updateStatus', ['method' => 'post']], //状态修改【接口】
'updateRole'=>['index/agent/updateRole', ['method' => 'post']], //经纪人角色修改【接口】
//商圈
......
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