Browse Source

小妙招开放接口

pull/38/head
pengda 1 month ago
parent
commit
d6c77f3430
  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