williamhill(中国·中文)官方网站-International Brand

[8192] ErrorException in Captcha.php line 161

Implicit conversion from float 62.5 to int loses precision

  1. * @return \think\Response
  2. */
  3. public function entry($id = '')
  4. {
  5. // 图片宽(px)
  6. $this->imageW || $this->imageW = $this->length * $this->fontSize * 1.5 + $this->length * $this->fontSize / 2;
  7. // 图片高(px)
  8. $this->imageH || $this->imageH = $this->fontSize * 2.5;
  9. // 建立一幅 $this->imageW x $this->imageH 的图像
  10. $this->im = imagecreate($this->imageW, $this->imageH);
  11. // 设置背景
  12. imagecolorallocate($this->im, $this->bg[0], $this->bg[1], $this->bg[2]);
  13. // 验证码字体随机颜色
  14. $this->color = imagecolorallocate($this->im, mt_rand(1, 150), mt_rand(1, 150), mt_rand(1, 150));
  15. if ($this->useImgBg) {
  16. $this->background();

Call Stack

  1. in Captcha.php line 161
  2. at Error::appError()
  3. at imagecreate() in Captcha.php line 161
  4. at Captcha->entry() in Index.php line 266
  5. at Index->verify()
  6. at call_user_func_array() in Route.php line 78
  7. at Route->execute()
  8. at ReflectionMethod->invokeArgs() in App.php line 343
  9. at App::invokeMethod() in App.php line 470
  10. at App::exec() in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/var/www/jtsportperf...') in index.php line 23

Environment Variables

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

Server/Request Data

USER
www-data
HOME
/var/www
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.jtsportperformance.com
HTTP_USER_AGENT
Mozilla/5.0 (compatible; SEOkicks; +https://www.seokicks.de/robot.html)
REDIRECT_STATUS
200
SERVER_NAME
www.jtsportperformance.com
SERVER_PORT
443
SERVER_ADDR
172.17.0.6
REMOTE_USER
REMOTE_PORT
49180
REMOTE_ADDR
170.130.206.2
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/var/www/jtsportperformance/public
DOCUMENT_URI
/index.php
REQUEST_URI
/addons/wwh/index/verify.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/addons/wwh/index/verify.html&
PATH_TRANSLATED
/var/www/jtsportperformance/public
PATH_INFO
/addons/wwh/index/verify.html
SCRIPT_FILENAME
/var/www/jtsportperformance/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1781627383.5363
REQUEST_TIME
1781627383
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/var/www/jtsportperformance/public/../application/
THINK_VERSION
5.0.26
THINK_START_TIME
1781627383.5364
THINK_START_MEM
357576
EXT
.php
DS
/
THINK_PATH
/var/www/jtsportperformance/thinkphp/
LIB_PATH
/var/www/jtsportperformance/thinkphp/library/
CORE_PATH
/var/www/jtsportperformance/thinkphp/library/think/
TRAIT_PATH
/var/www/jtsportperformance/thinkphp/library/traits/
ROOT_PATH
/var/www/jtsportperformance/
EXTEND_PATH
/var/www/jtsportperformance/extend/
VENDOR_PATH
/var/www/jtsportperformance/vendor/
RUNTIME_PATH
/var/www/jtsportperformance/runtime/
LOG_PATH
/var/www/jtsportperformance/runtime/log/
CACHE_PATH
/var/www/jtsportperformance/runtime/cache/
TEMP_PATH
/var/www/jtsportperformance/runtime/temp/
CONF_PATH
/var/www/jtsportperformance/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
HTMLPURIFIER_PREFIX
/var/www/jtsportperformance/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/var/www/jtsportperformance/addons/
XML 地图