Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Update response.dev.js
Browse files Browse the repository at this point in the history
  • Loading branch information
VirgilClyne committed Nov 18, 2024
1 parent f244398 commit 41aacc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/response.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ log(`⚠ FORMAT: ${FORMAT}`, "");
case "application/json":
body = JSON.parse($response.body ?? "{}");
switch (HOST) {
case "api.weather.com":
// 路径判断
switch (PATH) {
case "/v2/globalairquality":
log(`🚧 globalairquality: ${JSON.stringify(body)}`, "");
break;
}
break;
case "weatherkit.apple.com":
// 路径判断
if (PATH.startsWith("/api/v1/availability/")) {
Expand Down

0 comments on commit 41aacc7

Please sign in to comment.