up. 双向数据加密

This commit is contained in:
u2nyakim 2025-08-29 16:15:29 +08:00
parent e97e84f84e
commit 1e8aac7a32

View File

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