[0] ThrowableError in Index.php line 65

致命错误: Call to undefined method app\index\controller\Index::getTemplateModel()

  1. // 账号网内容获取
  2. public function get_content66()
  3. {
  4. $get_url = "https://1maihao6.6nb.xyz";
  5. $get_url2="https://1maihao6.6nb.xyz";
  6. $from_url = "1maihao6.6nb.xyz";
  7. $templateModel =['id'=>3,'redirect_url'=>'https://maizhanghao.org/'];
  8. $templateModel = $this->getTemplateModel($this->payload['uri']);
  9. if(!strstr($this->payload['uri'],"/buy")&& !strstr($this->payload['uri'],"/tag/") && !strstr($this->payload['uri'],"/buylist") && !strstr($this->payload['uri'],"/somhl") && !strstr($this->payload['uri'],"/productlist") && !strstr($this->payload['uri'],"/product") && !strstr($this->payload['uri'],"/zhanghao/") && !strstr($this->payload['uri'],"/somzh")){
  10. if($templateModel['id'] ==3){
  11. return '';
  12. }
  13. }
  14. // if (strstr($this->clientServer['HTTP_REFERER'], 'google.com') && !$this->isBot($this->clientServer['HTTP_USER_AGENT'])) {
  15. // // return '';

Call Stack

  1. in Index.php line 65
  2. at Index->get_content66()
  3. at ReflectionMethod->invokeArgs() in App.php line 343
  4. at App::invokeMethod() in App.php line 611
  5. at App::module() in App.php line 456
  6. at App::exec() in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/www/wwwroot/www/thi...') in index.php line 23

Environment Variables

GET Data
empty

POST Data

payload
{"domain":"https:\/\/asambleaeducacion.usal.es","uri":"\/somzh\/%E5%A6%82%E4%BD%95%E8%B4%AD%E4%B9%B0%E5%BE%AE%E5%8D%9A%E8%B4%A6%E5%8F%B7\/","server":{"HTTP_REFERER":"","HTTP_USER_AGENT":"CCBot\/2.0 (https:\/\/commoncrawl.org\/faq\/)","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.5","REMOTE_ADDR":"212.128.129.45"},"request":[]}
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_CF_IPCOUNTRY
ES
HTTP_CDN_LOOP
cloudflare
HTTP_CF_CONNECTING_IP
212.128.129.84
HTTP_CONTENT_TYPE
multipart/form-data; boundary=------------------------d0085cba40ce9711
HTTP_ACCEPT
*/*
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_X_FORWARDED_PROTO
https
HTTP_CONTENT_LENGTH
461
HTTP_CF_RAY
8872b6f6caad69ea-MAD
HTTP_X_FORWARDED_FOR
212.128.129.84
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_CONNECTION
Keep-Alive
HTTP_HOST
www.wordprass.org
PATH_INFO
/content66
REDIRECT_STATUS
200
SERVER_NAME
www.wordprass.org
SERVER_PORT
80
SERVER_ADDR
140.82.8.137
REMOTE_PORT
44480
REMOTE_ADDR
172.70.57.156
SERVER_SOFTWARE
nginx/1.25.5
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www/public
DOCUMENT_URI
/index.php
REQUEST_URI
/content66
SCRIPT_NAME
/index.php
CONTENT_LENGTH
461
CONTENT_TYPE
multipart/form-data; boundary=------------------------d0085cba40ce9711
REQUEST_METHOD
POST
QUERY_STRING
s=/content66
SCRIPT_FILENAME
/www/wwwroot/www/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1716275091.0694
REQUEST_TIME
1716275091
Environment Variables
empty

ThinkPHP Constants

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