diff --git a/app/api/controller/User.php b/app/api/controller/User.php index 140b2d20..8be375cb 100755 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -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请求