[0] ThrowableError in Plus.php line 21

致命错误: Call to undefined function app\index\controller\M()

  1. if ($arr['install_productid'] == 0) {
  2. $arr['install_productid'] = 1;
  3. }
  4. $arr['install_email'] = input('request.email', '', 'trim');
  5. $arr['install_mobile'] = input('request.mobile', '', 'trim');
  6. $arr['install_time'] = time();
  7. $arr['install_ver'] = input('request.v', '', 'trim');
  8. $arr['install_ip'] = get_client_ip();
  9. $arr['install_ip_txt'] = '';
  10. M('Installinfo')->add($arr);
  11. }
  12. public function external()
  13. {
  14. $version = input('request.version', '', 'trim');
  15. $certification = input('request.certification', '', 'trim');
  16. $announcement = input('request.announcement', '', 'trim');
  17. $current_new_version = $this->db->name('download')
  18. ->where(array(
  19. 'module_name' => 'Home',

Call Stack

  1. in Plus.php line 21
  2. at Plus->getinstall()
  3. at ReflectionMethod->invokeArgs(object(Plus), []) in App.php line 343
  4. at App::invokeMethod([object(Plus), 'getinstall'], []) in App.php line 611
  5. at App::module(['index', 'plus', 'getinstall'], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...], false) in App.php line 456
  6. at App::exec(['type' => 'module', 'module' => ['index', 'plus', 'getinstall'], 'convert' => false], ['app_host' => '', 'app_debug' => '1', 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/mnt/wwwroot/www.74c...') in index.php line 43

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
PATH_INFO
/plus/getinstall
HTTP_HOST
www.74cms.com
REDIRECT_STATUS
200
SERVER_NAME
www.74cms.com
SERVER_PORT
443
SERVER_ADDR
10.0.0.5
REMOTE_PORT
59820
REMOTE_ADDR
220.154.130.177
SERVER_SOFTWARE
nginx/1.28.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/mnt/wwwroot/www.74cms.com/api/public
DOCUMENT_URI
/index.php
REQUEST_URI
/plus/getinstall?
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/plus/getinstall
SCRIPT_FILENAME
/mnt/wwwroot/www.74cms.com/api/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1772762513.3895
REQUEST_TIME
1772762513
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/wwwroot/www.74cms.com/api/public/../application/
API_LIB_PATH
/mnt/wwwroot/www.74cms.com/api/public/../application/common/lib/
SYS_UPLOAD_DIR_NAME
upload
SYS_UPLOAD_PATH
/mnt/wwwroot/www.74cms.com/api/public/upload/
TOKEN_PATH
/mnt/wwwroot/www.74cms.com/api/public/../runtime/jwttokens/
STATIC_PATH
/mnt/wwwroot/www.74cms.com/api/public/static/
PUBLIC_PATH
/mnt/wwwroot/www.74cms.com/api/public/
UU_IMG_ARTICLE_DIR
/mnt/wwwroot/www.74cms.com/api/public/../../../www.74cms.com/data/images/article/
UU_DOWNLOAD_DIR
/mnt/wwwroot/www.74cms.com/api/public/../../../admin0351.74cms.com/downloads/
TEST_MODE
false
THINK_VERSION
5.0.24
THINK_START_TIME
1772762513.3898
THINK_START_MEM
380624
EXT
.php
DS
/
THINK_PATH
/mnt/wwwroot/www.74cms.com/api/thinkphp/
LIB_PATH
/mnt/wwwroot/www.74cms.com/api/thinkphp/library/
CORE_PATH
/mnt/wwwroot/www.74cms.com/api/thinkphp/library/think/
TRAIT_PATH
/mnt/wwwroot/www.74cms.com/api/thinkphp/library/traits/
ROOT_PATH
/mnt/wwwroot/www.74cms.com/api/
EXTEND_PATH
/mnt/wwwroot/www.74cms.com/api/extend/
VENDOR_PATH
/mnt/wwwroot/www.74cms.com/api/vendor/
RUNTIME_PATH
/mnt/wwwroot/www.74cms.com/api/runtime/
LOG_PATH
/mnt/wwwroot/www.74cms.com/api/runtime/log/
CACHE_PATH
/mnt/wwwroot/www.74cms.com/api/runtime/cache/
TEMP_PATH
/mnt/wwwroot/www.74cms.com/api/runtime/temp/
CONF_PATH
/mnt/wwwroot/www.74cms.com/api/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
PHP_FLOAT_DIG
15
PHP_FLOAT_EPSILON
2.2204460492503E-16
PHP_FLOAT_MIN
2.2250738585072E-308
PHP_FLOAT_MAX
1.7976931348623E+308
PHP_OS_FAMILY
Linux