Browse Source

如果未登录跳转至授权链接

pull/1/head
liuyu 3 years ago
parent
commit
dcc56a938c
  1. 11
      index.php

11
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;
}

Loading…
Cancel
Save