但是转化成字符串又出了这样的问题
[1] ErrorException in Response.php line 113
Uncaught exception 'think\exception\ErrorException' with message 'http_response_code() expects parameter 1 to be long, string given' in F:\xampp\htdocs\zerg\thinkphp\library\think\Response.php:113
Stack trace:
#0 [internal function]: think\Error::appError(2, 'http_response_c...', 'F:\\xampp\\htdocs...', 113, Array)
#1 F:\xampp\htdocs\zerg\thinkphp\library\think\Response.php(113): http_response_code('id\xE4\xB8\x8D\xE6\x98\xAF\xE6\xAD\xA3\xE6\x95\xB4\xE6...')
#2 F:\xampp\htdocs\zerg\thinkphp\library\think\Error.php(47): think\Response->send()
#3 [internal function]: think\Error::appException(Object(app\lib\exception\ParameterException))
#4 {main}
thrown