From 503ec59c271f05afc11ef4bfa96d5d736189e389 Mon Sep 17 00:00:00 2001 From: "zhangf@suq.cn" Date: Mon, 2 Feb 2026 17:15:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(news):=20=E8=A7=A3=E5=86=B3=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=A4=B1=E8=B4=A5=E6=97=B6=E8=BF=94=E5=9B=9E=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 JSON 响应头确保正确的内容类型 - 设置 UTF-8 字符编码以支持中文字符 - 确保验证失败时能够正确返回错误信息 --- member/xunliuAddNews.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/member/xunliuAddNews.php b/member/xunliuAddNews.php index 9b31e93..0d9ceb3 100644 --- a/member/xunliuAddNews.php +++ b/member/xunliuAddNews.php @@ -79,6 +79,8 @@ if($do->pass($post)) { if(isset($post['sync_sina']) && $post['sync_sina']) { $js .= sync_weibo('sina', $moduleid, $do->itemid); } + // 验证失败时返回错误信息 + header('Content-Type: application/json; charset=utf-8'); echo '{"success":true,"itemid":' . $do->itemid . '}'; } ?> \ No newline at end of file