中文字符不转义

This commit is contained in:
wangxiaowei 2024-09-25 11:29:13 +08:00
parent 5a19928602
commit 73ba8e50d6

@ -67,7 +67,7 @@ class User extends Api
];
$url = 'https://api.weixin.qq.com/wxa/msg_sec_check?access_token=' . $response['access_token']; // 目标URL
$data_json = json_encode($data); // 将数据编码为JSON
$data_json = json_encode($data, JSON_UNESCAPED_UNICODE); // 将数据编码为JSON
$ch = curl_init($url); // 初始化cURL会话
curl_setopt($ch, CURLOPT_POST, true); // 设置为POST请求