[8] ErrorException in Zyjs.php line 26

未定义数组索引: hanzi

  1. if ($this->keyword) {
  2. $this->reqApi = true;
  3. }
  4. }
  5. parent::__construct();
  6. if ($this->reqApi || request()->isPost()) {
  7. if (is_numeric($this->keyword)) {
  8. $info = $this->mfcsSdk->getHanziInfo($this->keyword);
  9. $hanzi = $info['hanzi'];
  10. }else {
  11. $hanzi = $this->keyword;
  12. }
  13. $tkd = [
  14. 't' =>sprintf('%s-字义解释-华易网', $hanzi),
  15. 'k' => sprintf('%s-字义解释-华易网', $hanzi),
  16. 'd' => sprintf('%s-字义解释-华易网', $hanzi),
  17. ];

Call Stack

  1. in Zyjs.php line 26
  2. at Error::appError(8, 'Undefined index: han...', '/adata/website/k366/...', 26, ['info' => []]) in Zyjs.php line 26
  3. at Zyjs->__construct()
  4. at ReflectionClass->newInstanceArgs([]) in Container.php line 439
  5. at Container->invokeClass('app\mfcs\controller\...', []) in Container.php line 284
  6. at Container->make('app\mfcs\controller\...', true) in App.php line 726
  7. at App->controller('Zyjs', 'controller', false, 'Error') in Module.php line 98
  8. at Module->exec() in Dispatch.php line 168
  9. at Dispatch->run() in App.php line 432
  10. at App->think\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request)) in App.php line 435
  15. at App->run() in index.php line 21

Environment Variables

GET Data
id 5837
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
TEMP /tmp
TMPDIR /tmp
TMP /tmp
PATH /usr/local/bin:/usr/bin:/bin
HOSTNAME k366
USER www
HOME /home/www
FCGI_ROLE RESPONDER
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx
QUERY_STRING s=/zi.asp&id=5837
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_FILENAME /data/website/k366/publiccm/index.php
SCRIPT_NAME /index.php
REQUEST_URI /zi.asp?id=5837
DOCUMENT_URI /index.php
DOCUMENT_ROOT /data/website/k366/publiccm
SERVER_PROTOCOL HTTP/1.1
REMOTE_ADDR 3.238.142.134
REMOTE_PORT 44270
SERVER_ADDR 101.251.251.46
SERVER_PORT 443
SERVER_NAME cm.k366.com
REDIRECT_STATUS 200
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_REFERER http://cm.k366.com/zi.asp?id=5837
HTTP_HOST cm.k366.com
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711619691.8037
REQUEST_TIME 1711619691
Environment Variablesempty
ThinkPHP Constantsempty