小妙招开放接口 #38

Merged
pengda merged 1 commits from wpd_openapi into master 1 month ago
  1. 6
      index.php

6
index.php

@ -79,6 +79,12 @@
$needlogin = false;
}
if($_POST['str'] == FREE_LOGIN_STR){
$needlogin = false;
if($this->control_name !== 'weibo' || $this->control_func == 'home') $this->ajax_json(false, '暂无权限');
}
if ($needlogin) {
if(empty($_SESSION['openid']) && empty($_SESSION['token'])) {
header("Location: /login?url=".$_SERVER['REQUEST_URI']);

Loading…
Cancel
Save