[0] ThrowableError in Content.php line 13

致命错误: Call to undefined function app\exam\model\format_math()

  1. use app\common\model\C;
  2. //模型内容处理
  3. class Content extends C
  4. {
  5. public static function getInfoByid($id=0,$format=FALSE){
  6. $info = parent::getInfoByid($id,$format);
  7. if(ENTRANCE==='index'&&request()->dispatch()['module'][0]!='search'){
  8. $info['title'] = format_math($info['title']);
  9. $info['answer_a'] = format_math($info['answer_a']);
  10. $info['answer_b'] = format_math($info['answer_b']);
  11. $info['answer_c'] = format_math($info['answer_c']);
  12. $info['answer_d'] = format_math($info['answer_d']);
  13. }
  14. return $info;
  15. }
  16. }

Call Stack

  1. in Content.php line 13
  2. at Content::getInfoByid(13715, true) in Content.php line 163
  3. at Content::info(13715, 'exam', true) in Tagfun.php line 78
  4. at Tagfun::content(['id' => 17633, 'aid' => 13715, 'fid' => 0, ...], true) in Tagfun.php line 91
  5. at Tagfun->topic(['id' => 17633, 'aid' => 13715, 'fid' => 0, ...], true) in common.php line 77
  6. at fun('Tagfun@topic', ['id' => 17633, 'aid' => 13715, 'fid' => 0, ...]) in d4cfb36d2362fcde4b73cc61433de8dd.php line 186
  7. at include('C:\wwwroot\xuefeiji....') in File.php line 53
  8. at File->read('C:\wwwroot\xuefeiji....', ['auto_tpl_base_layout' => 'C:\wwwroot\xuefeiji....', 'tid' => 2830, 't_list' => ['id' => 2830, 'tagname' => '什么', 'list' => 0, ...], ...]) in Template.php line 189
  9. at Template->fetch('C:\wwwroot\xuefeiji....', ['auto_tpl_base_layout' => 'C:\wwwroot\xuefeiji....', 'tid' => 2830, 't_list' => ['id' => 2830, 'tagname' => '什么', 'list' => 0, ...], ...], []) in Think.php line 86
  10. at Think->fetch('C:\wwwroot\xuefeiji....', ['auto_tpl_base_layout' => 'C:\wwwroot\xuefeiji....', 'tid' => 2830, 't_list' => ['id' => 2830, 'tagname' => '什么', 'list' => 0, ...], ...], []) in View.php line 163
  11. at View->fetch('C:\wwwroot\xuefeiji....', ['auto_tpl_base_layout' => 'C:\wwwroot\xuefeiji....', 'tid' => 2830, 't_list' => ['id' => 2830, 'tagname' => '什么', 'list' => 0, ...], ...], ['__ROOT__' => '', '__URL__' => '/index.php/index/plu...', '__STATIC__' => '/public/static', ...], []) in Controller.php line 120
  12. at Controller->fetch('C:\wwwroot\xuefeiji....', ['admin' => false, 'userdb' => false, 'timestamp' => 1710818550, ...], [], []) in Base.php line 424
  13. at Base->fetch('C:\wwwroot\xuefeiji....') in Taglist.php line 42
  14. at Taglist->index(2830, '什么') in common.php line 462
  15. at plugin_action('kwtags', 'taglist', 'index', ['keyword' => '什么']) in Plugin.php line 40
  16. at Plugin->execute()
  17. at ReflectionMethod->invokeArgs(object(Plugin), []) in App.php line 348
  18. at App::invokeMethod([object(Plugin), 'execute'], []) in App.php line 612
  19. at App::module(['index', 'plugin', 'execute'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 461
  20. at App::exec(['type' => 'module', 'module' => ['index', 'plugin', 'execute'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  21. at App::run() in start.php line 19
  22. at require('C:\wwwroot\xuefeiji....') in index.php line 29

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

user_sid
817b81023c
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\python;C:\Program Files\python\Scripts;C:\BtSoft\panel\script;C:\Program Files\Git\cmd;
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
_FCGI_SHUTDOWN_EVENT_
25376
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/p/kwtags-taglist-index/keyword/%E4%BB%80%E4%B9%88.html
QUERY_STRING
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/2.0
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_URL
/p/kwtags-taglist-index/keyword/什么.html
REMOTE_PORT
52282
SCRIPT_FILENAME
C:/wwwroot/xuefeiji.org/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
C:/wwwroot/xuefeiji.org
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
C:/wwwroot/xuefeiji.org
REMOTE_ADDR
52.90.181.205
SERVER_PORT
443
SERVER_ADDR
172.29.133.117
SERVER_NAME
www.xuefeiji.org
SERVER_SOFTWARE
Apache/2.4.54 (Win64) OpenSSL/1.1.1p mod_fcgid/2.3.9a
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_HOST
www.xuefeiji.org
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
SSL_TLS_SNI
www.xuefeiji.org
HTTPS
on
H2_STREAM_TAG
1494-3
H2_STREAM_ID
3
H2_PUSHED_ON
H2_PUSHED
H2_PUSH
off
H2PUSH
off
HTTP2
on
SCRIPT_URI
https://www.xuefeiji.org/p/kwtags-taglist-index/keyword/什么.html
SCRIPT_URL
/p/kwtags-taglist-index/keyword/什么.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.xuefeiji.org
REDIRECT_HTTPS
on
REDIRECT_H2_STREAM_TAG
1494-3
REDIRECT_H2_STREAM_ID
3
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSH
off
REDIRECT_H2PUSH
off
REDIRECT_HTTP2
on
REDIRECT_PATH_INFO
p/kwtags-taglist-index/keyword/什么.html
REDIRECT_SCRIPT_URI
https://www.xuefeiji.org/p/kwtags-taglist-index/keyword/什么.html
REDIRECT_SCRIPT_URL
/p/kwtags-taglist-index/keyword/什么.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710818550.3999
REQUEST_TIME
1710818550
PATH_INFO
p/kwtags-taglist-index/keyword/什么.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wwwroot\xuefeiji.org/application/
ENTRANCE
index
THINK_VERSION
5.0.18
THINK_START_TIME
1710818550.4006
THINK_START_MEM
422296
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\xuefeiji.org\thinkphp\
LIB_PATH
C:\wwwroot\xuefeiji.org\thinkphp\library\
CORE_PATH
C:\wwwroot\xuefeiji.org\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\xuefeiji.org\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\xuefeiji.org\
EXTEND_PATH
C:\wwwroot\xuefeiji.org\extend\
VENDOR_PATH
C:\wwwroot\xuefeiji.org\vendor\
RUNTIME_PATH
C:\wwwroot\xuefeiji.org\runtime\
LOG_PATH
C:\wwwroot\xuefeiji.org\runtime\log\
CACHE_PATH
C:\wwwroot\xuefeiji.org\runtime\cache\
TEMP_PATH
C:\wwwroot\xuefeiji.org\runtime\temp\
CONF_PATH
C:\wwwroot\xuefeiji.org/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
HTMLPURIFIER_PREFIX
C:\wwwroot\xuefeiji.org\vendor\ezyang\htmlpurifier\library
FIRST_LOAD
true
TEMPLATE_PATH
C:\wwwroot\xuefeiji.org\template/
IS_POST
false
PUBLIC_URL
/public/
PUBLIC_PATH
C:\wwwroot\xuefeiji.org\public\
UPLOAD_URL
/public/uploads/
UPLOAD_PATH
C:\wwwroot\xuefeiji.org\public\uploads\
STATIC_URL
/public/static/
STATIC_PATH
C:\wwwroot\xuefeiji.org\public\static\
PLUGINS_PATH
C:\wwwroot\xuefeiji.org\plugins\
CACHE_DIR
C:\wwwroot\xuefeiji.org\runtime\
QUN
通航圈
ADMIN_FILENAME
adminxfj.php
LOAD_INDEXBASE
true
IN_PLUGIN
kwtags#taglist#index
IN_TEMPLATE
true