[2] ErrorException in function.php line 977

hex2bin(): Hexadecimal input string must have an even length

  1. }
  2. if (!function_exists('decryptStr')) {
  3. /**
  4. * 字符串解密
  5. * @param $str
  6. */
  7. function decryptStr($str){
  8. $key = config('web_aes_key'); // 加密秘钥
  9. $decrypt = openssl_decrypt(hex2bin($str), 'AES-256-ECB', $key, 0); // 解密
  10. return $decrypt;
  11. }
  12. }

Call Stack

  1. in function.php line 977
  2. at Error::appError(2, 'hex2bin(): Hexadecim...', '/www/wwwroot/cqhra.b...', 977, ['str' => '972', 'key' => 'www.cqhra.com19'])
  3. at hex2bin('972') in function.php line 977
  4. at decryptStr('972') in Index.php line 13
  5. at Index->show('972')
  6. at ReflectionMethod->invokeArgs(object(Index), ['972']) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '972']) in Module.php line 131
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 33

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.cqhra.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME cqhra.baibaitan.com
SERVER_PORT 80
SERVER_ADDR 172.16.75.164
REMOTE_PORT 54694
REMOTE_ADDR 3.85.85.246
SERVER_SOFTWARE nginx/1.12.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/cqhra.baibaitan.com/public
DOCUMENT_URI /index.php
REQUEST_URI /member/index/show/id/972.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/member/index/show/id/972.html
SCRIPT_FILENAME /www/wwwroot/cqhra.baibaitan.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711693373.6295
REQUEST_TIME 1711693373
Environment Variablesempty
ThinkPHP Constants
ADMIN_FILE cqhraadmin.php
HTMLPURIFIER_PREFIX /www/wwwroot/cqhra.baibaitan.com/vendor/ezyang/htmlpurifier/library
PUBLIC_PATH /