From be5693e03eb233dfc273a5dcfa5d9f8880c763a3 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 17 Oct 2022 14:47:55 +0800 Subject: [PATCH] edit-sylive-login --- home/controllers/h5/market/sylive/Common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/controllers/h5/market/sylive/Common.php b/home/controllers/h5/market/sylive/Common.php index c1d8d45b..2c1d7982 100644 --- a/home/controllers/h5/market/sylive/Common.php +++ b/home/controllers/h5/market/sylive/Common.php @@ -139,6 +139,9 @@ class Admin extends Common{ $this->uid = $row_wechat['userId']; $this->session = $_SESSION[self::SESSION_KEY] = ['uid' => $this->uid,'org_id'=>$row_wechat['organizationId']]; } + if(!$this->session['org_id']){ + header('Location:/h5/market/sylive/login');exit; + } return $this->$method(); } catch(Hd_exception $e){//处理异常 $msg = $e->getMessage();