Deprecated: voku\helper\UTF8::extract_text(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 1622

Deprecated: voku\helper\UTF8::file_get_contents(): Implicitly marking parameter $offset as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 1842

Deprecated: voku\helper\UTF8::file_get_contents(): Implicitly marking parameter $max_length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 1842

Deprecated: voku\helper\UTF8::getSupportInfo(): Implicitly marking parameter $key as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 2580

Deprecated: voku\helper\UTF8::html_entity_decode(): Implicitly marking parameter $flags as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 3029

Deprecated: voku\helper\UTF8::lcfirst(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4301

Deprecated: voku\helper\UTF8::lcwords(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4365

Deprecated: voku\helper\UTF8::ltrim(): Implicitly marking parameter $chars as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4444

Deprecated: voku\helper\UTF8::rtrim(): Implicitly marking parameter $chars as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5625

Deprecated: voku\helper\UTF8::str_camelize(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5762

Deprecated: voku\helper\UTF8::str_delimit(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 6022

Deprecated: voku\helper\UTF8::str_replace(): Implicitly marking parameter $count as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 7678

Deprecated: voku\helper\UTF8::str_slice(): Implicitly marking parameter $end as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 7913

Deprecated: voku\helper\UTF8::str_titleize(): Implicitly marking parameter $ignore as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 8704

Deprecated: voku\helper\UTF8::str_titleize(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 8704

Deprecated: voku\helper\UTF8::str_titleize(): Implicitly marking parameter $word_define_chars as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 8704

Deprecated: voku\helper\UTF8::str_to_lines(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 9064

Deprecated: voku\helper\UTF8::str_to_words(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 9111

Deprecated: voku\helper\UTF8::str_upper_camelize(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 9352

Deprecated: voku\helper\UTF8::strcspn(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 9515

Deprecated: voku\helper\UTF8::strip_tags(): Implicitly marking parameter $allowable_tags as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 9652

Deprecated: voku\helper\UTF8::strspn(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11118

Deprecated: voku\helper\UTF8::strtocasefold(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11348

Deprecated: voku\helper\UTF8::strtolower(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11403

Deprecated: voku\helper\UTF8::strtoupper(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11483

Deprecated: voku\helper\UTF8::substr(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11698

Deprecated: voku\helper\UTF8::substr_compare(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11868

Deprecated: voku\helper\UTF8::substr_count(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 11926

Deprecated: voku\helper\UTF8::substr_count_in_byte(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12018

Deprecated: voku\helper\UTF8::substr_in_byte(): Implicitly marking parameter $length as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12172

Deprecated: voku\helper\UTF8::titlecase(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12566

Deprecated: voku\helper\UTF8::trim(): Implicitly marking parameter $chars as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 12984

Deprecated: voku\helper\UTF8::ucfirst(): Implicitly marking parameter $lang as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13030

Deprecated: voku\helper\UTF8::wordwrap_per_line(): Implicitly marking parameter $delimiter as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13496

Deprecated: voku\helper\UTF8::reduce_string_array(): Implicitly marking parameter $remove_short_values as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13827

Deprecated: build_suffix_svg(): Implicitly marking parameter $background as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/app/common.php on line 246

Deprecated: app\admin\library\module\Server::getClass(): Implicitly marking parameter $class as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/cod-api.betterwedo.cn/app/admin/library/module/Server.php on line 336
系统发生错误

#0 [8192]ErrorException in Api.php line 73

app\common\controller\Api::success(): Implicitly marking parameter $type as nullable is deprecated, the explicit nullable type must be used instead

  1. /**
  2. * 操作成功
  3. * @param string $msg 提示消息
  4. * @param mixed $data 返回数据
  5. * @param int $code 错误码
  6. * @param string|null $type 输出类型
  7. * @param array $header 发送的 header 信息
  8. * @param array $options Response 输出参数
  9. */
  10. protected function success(string $msg = '', mixed $data = null, int $code = 1, string $type = null, array $header = [], array $options = []): void
  11. {
  12. $this->result($msg, $data, $code, $type, $header, $options);
  13. }
  14. /**
  15. * 操作失败
  16. * @param string $msg 提示消息
  17. * @param mixed $data 返回数据
  18. * @param int $code 错误码

Call Stack

  1. in Api.php line 73
  2. at Error->appError() in ClassLoader.php line 576
  3. at include() in ClassLoader.php line 576
  4. at {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}() in ClassLoader.php line 427
  5. at ClassLoader->loadClass() in Frontend.php line 11
  6. at include('/www/wwwroot/cod-api...') in ClassLoader.php line 576
  7. at {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}() in ClassLoader.php line 427
  8. at ClassLoader->loadClass() in Index.php line 12
  9. at include('/www/wwwroot/cod-api...') in ClassLoader.php line 576
  10. at {closure:Composer\Autoload\ClassLoader::initializeIncludeClosure():575}() in ClassLoader.php line 427
  11. at ClassLoader->loadClass()
  12. at class_exists() in Controller.php line 107
  13. at Controller->controller() in Controller.php line 83
  14. at Controller->exec() in Dispatch.php line 56
  15. at Dispatch->run() in Route.php line 713
  16. at Route->{closure:think\Route::dispatch():712}() in Pipeline.php line 59
  17. at Pipeline->{closure:think\Pipeline::then():57}() in Pipeline.php line 66
  18. at Pipeline->then() in Route.php line 712
  19. at Route->dispatch() in Http.php line 208
  20. at Http->dispatchToRoute() in Http.php line 198
  21. at Http->{closure:think\Http::runWithRequest():197}() in Pipeline.php line 59
  22. at Pipeline->{closure:think\Pipeline::then():57}() in MultiApp.php line 51
  23. at MultiApp->{closure:think\app\MultiApp::handle():50}() in Pipeline.php line 59
  24. at Pipeline->{closure:think\Pipeline::then():57}() in LoadLangPack.php line 53
  25. at LoadLangPack->handle()
  26. at call_user_func() in Middleware.php line 134
  27. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  28. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in AllowCrossDomain.php line 68
  29. at AllowCrossDomain->handle()
  30. at call_user_func() in Middleware.php line 134
  31. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  32. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in Pipeline.php line 66
  33. at Pipeline->then() in MultiApp.php line 50
  34. at MultiApp->handle()
  35. at call_user_func() in Middleware.php line 134
  36. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  37. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in FacebookTracking.php line 18
  38. at FacebookTracking->handle()
  39. at call_user_func() in Middleware.php line 134
  40. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  41. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in Throttle.php line 135
  42. at Throttle->handle()
  43. at call_user_func() in Middleware.php line 134
  44. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  45. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in TraceDebug.php line 71
  46. at TraceDebug->handle()
  47. at call_user_func() in Middleware.php line 134
  48. at Middleware->{closure:{closure:think\Middleware::pipeline():128}:129}() in Pipeline.php line 85
  49. at Pipeline->{closure:{closure:think\Pipeline::carry():82}:83}() in Pipeline.php line 66
  50. at Pipeline->then() in Http.php line 197
  51. at Http->runWithRequest() in Http.php line 162
  52. at Http->run() in index.php line 43

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
PATH_INFO
HTTP_HOST cod-api.betterwedo.cn
REDIRECT_STATUS 200
SERVER_NAME cod-api.betterwedo.cn
SERVER_PORT 443
SERVER_ADDR 172.22.22.118
REMOTE_PORT 59603
REMOTE_ADDR 216.73.216.106
SERVER_SOFTWARE nginx/1.28.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/cod-api.betterwedo.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/cod-api.betterwedo.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1773119091.6476
REQUEST_TIME 1773119091
0.012405s