改进 编码问题
This commit is contained in:
parent
555049d803
commit
3555d0ba2d
@ -31,12 +31,12 @@ public function apiResponse($data, $status = 200)
|
|||||||
$data['success'] = 0;
|
$data['success'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($data, $status);
|
return response()->json($data, $status)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function remoteResponse($response, $status = 200)
|
public function remoteResponse($response, $status = 200)
|
||||||
{
|
{
|
||||||
return response()->json($response, $status);
|
return response()->json($response, $status)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// success
|
// success
|
||||||
|
Loading…
Reference in New Issue
Block a user