Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 1

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 2

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3
System Error

Deprecated: Array and string offset access syntax with curly braces is deprecated in /www/wwwroot/wxoo.net/public/index.php on line 3

[8] ErrorException in User.php line 185

未定义数组索引: HTTP_REFERER

  1. }
  2. /**
  3. * 微信授权登录
  4. */
  5. public function wechatlogin(){
  6. $code = input('code');
  7. if(empty($code)){
  8. $url = urlencode("https://www.wxoo.net/wechatlogin.html");
  9. $reul = $_SERVER['HTTP_REFERER'];
  10. Header("location:https://open.weixin.qq.com/connect/qrconnect?appid=wx094014da4cfb52e1&redirect_uri=$url&response_type=code&scope=snsapi_login&state=$reul#wechat_redirect");
  11. exit();
  12. }else{
  13. $state = input('state');
  14. // dump($state);die();
  15. $urls = '';
  16. $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx094014da4cfb52e1&secret=d5d4019a53812552f7c17eb6393de077&code=$code&grant_type=authorization_code";
  17. $data = file_get_contents($url);
  18. // dump($data);die;

Call Stack

  1. in User.php line 185
  2. at Error::appError() in User.php line 185
  3. at User->wechatlogin()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/wxoo.ne...') in index.php line 27

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/wechatlogin
PATH_INFO
/wechatlogin
SCRIPT_NAME
/index.php
REQUEST_URI
/wechatlogin
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/wechatlogin
REMOTE_PORT
58726
SCRIPT_FILENAME
/www/wwwroot/wxoo.net/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/wxoo.net/public
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/wxoo.net/public
REMOTE_ADDR
216.73.216.104
SERVER_PORT
443
SERVER_ADDR
172.19.157.136
SERVER_NAME
www.wxoo.net
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.wxoo.net Port 443</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_HOST
www.wxoo.net
HTTP_ACCEPT_ENCODING
gzip, br, zstd, deflate
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT
*/*
proxy-nokeepalive
1
H2_STREAM_TAG
14573-1238-1
H2_STREAM_ID
1
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SSL_TLS_SNI
www.wxoo.net
HTTPS
on
REDIRECT_STATUS
200
REDIRECT_H2_STREAM_TAG
14573-1238-1
REDIRECT_H2_STREAM_ID
1
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_SSL_TLS_SNI
www.wxoo.net
REDIRECT_HTTPS
on
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/wechatlogin
REQUEST_TIME_FLOAT
1786611409.1574
REQUEST_TIME
1786611409
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/wxoo.net/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1786611409.1582
THINK_START_MEM
426552
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/wxoo.net/thinkphp/
LIB_PATH
/www/wwwroot/wxoo.net/thinkphp/library/
CORE_PATH
/www/wwwroot/wxoo.net/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/wxoo.net/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/wxoo.net/
EXTEND_PATH
/www/wwwroot/wxoo.net/extend/
VENDOR_PATH
/www/wwwroot/wxoo.net/vendor/
RUNTIME_PATH
/www/wwwroot/wxoo.net/runtime/
LOG_PATH
/www/wwwroot/wxoo.net/runtime/log/
CACHE_PATH
/www/wwwroot/wxoo.net/runtime/cache/
TEMP_PATH
/www/wwwroot/wxoo.net/runtime/temp/
CONF_PATH
/www/wwwroot/wxoo.net/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/wxoo.net/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/wxoo.net/addons/