return Response::json($data, $this->getStatusCode(), $header)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
public function response(){
// 返回json数据
$data = [
'errCode' => 0,
'errMsg' => '这是一条错误信息',
'data' => '这是一条数据信息',
];
return response()->json($data)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
}