diff --git a/Scripts/AddMsGames.js b/Scripts/AddMsGames.js index b9c13f4..a4ae61c 100644 --- a/Scripts/AddMsGames.js +++ b/Scripts/AddMsGames.js @@ -526,18 +526,57 @@ ${failedHtml} }); } + function doneWithPage(title, message, type = "warn") { + const color = type === "error" ? "#e05050" : type === "warn" ? "#e8a838" : "#52b043"; + const icon = type === "error" ? "❌" : type === "warn" ? "⚠️" : "✅"; + const html = ` + +
+ + +${MUID_KEY}${CV_KEY}`, "error");
return;
}
if (productList.length === 0) {
$notification.post(`⚠️ Xbox ${label}`, "列表为空,无需执行", `来源: ${sourceLabel}`);
if (useRemote) {
- $httpClient.post({ url: REMOTE_COMMIT_URL, headers: { "Content-Type": "application/json" }, body: JSON.stringify({ remaining: {} }) }, () => $done({}));
+ $httpClient.post({ url: REMOTE_COMMIT_URL, headers: { "Content-Type": "application/json" }, body: JSON.stringify({ remaining: {} }) }, () => {
+ doneWithPage("暂无商品", `远程队列与本地列表均为空,无需加购。