格式化 JSON 响应以提高可读性

This commit is contained in:
严浩
2025-07-15 23:51:59 +08:00
parent edd66080af
commit 8f3b3618e9

View File

@@ -96,7 +96,7 @@ async function handleRequest(request) {
phoneNumber: phone
};
return new Response(JSON.stringify(jsonResponse), {
return new Response(JSON.stringify(jsonResponse, null, 2), {
headers: { 'content-type': 'application/json;charset=UTF-8' },
});
}