Malformed UTF-8 characters, possibly incorrectly encoded
* @throws \Exception
*/
protected function output($data)
{
try {
// 返回JSON数据格式到客户端 包含状态信息
$data = json_encode($data, $this->options['json_encode_param']);
if ($data === false) {
throw new \InvalidArgumentException(json_last_error_msg());
}
return $data;
} catch (\Exception $e) {
if ($e->getPrevious()) {
throw $e->getPrevious();
}
throw $e;
}
Call Stack
in Json.php line 39
at Json->output(['code' => 2002, 'message' => 'SQLSTATE[HY000] [200...']) in Response.php line 309
at Response->getContent() in Response.php line 94
at Response->send() in start.php line 19
at require('F:\admin.ysstar.cn\t...') in index.php line 17
微信截图_20181212153825.png
( 57.74 KB 下载:24 次 )
最佳答案