up. 双向数据加密

This commit is contained in:
u2nyakim 2025-08-29 16:13:21 +08:00
parent 03576fdac6
commit e97e84f84e

View File

@ -65,7 +65,7 @@ class Request extends \think\Request
{ {
// 如果是数组或对象,转换为 JSON 字符串 // 如果是数组或对象,转换为 JSON 字符串
if (is_array($data) || is_object($data)) { if (is_array($data) || is_object($data)) {
$data = json_encode($data); $data = json_encode($data, JSON_UNESCAPED_UNICODE);
} }
// 生成随机 salt (8字节) // 生成随机 salt (8字节)