...
|
...
|
@@ -110,7 +110,7 @@ class Index extends Backend |
|
|
Hook::listen("admin_login_init", $this->request);
|
|
|
$user = \think\Session::get('user');
|
|
|
if(!empty($user['id'])){
|
|
|
$store_id = Db::name('store')->where(['user_id'=>$user['id']])->value('store_id');
|
|
|
$store_id = Db::name('store')->where(['user_id'=>$user['id']])->value('id');
|
|
|
if(!empty($store_id)){
|
|
|
$admin = Db::name('admin')->where(['store_id'=>$store_id])->find();
|
|
|
$this->assign('admin',$admin);
|
...
|
...
|
|