From dcc56a938c5c89fa034ada5ace4a4006302c7186 Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Fri, 8 Jul 2022 15:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=9C=AA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E8=87=B3=E6=8E=88=E6=9D=83=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index e44a919..62c44c5 100644 --- a/index.php +++ b/index.php @@ -58,16 +58,21 @@ class run extends publicBase { $app_uid = $_SESSION['app_uid']; $app_name = $_SESSION['app_name']; - //代理登陆检查 if (empty($app_uid) || empty($app_name)) { - header('Location:/'); + $pobj = new mPdd(); + $url = $pobj->getPddAuthUrl(); + + header('Location:'.$url); exit; } $sobj = new mShop(); $shopinfo = $sobj->getShopByName($app_name); if (empty($shopinfo)) { - header('Location:/'); + $pobj = new mPdd(); + $url = $pobj->getPddAuthUrl(); + + header('Location:'.$url); exit; }