Add toy form values

增加手办表单信息
This commit is contained in:
2025-02-01 14:32:00 +08:00
parent 3733461807
commit c252ceafb2
6 changed files with 3546 additions and 2905 deletions
+4
View File
@@ -3,6 +3,10 @@ import type { PlasmoMessaging } from "@plasmohq/messaging";
const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
const { token, siteUrl } = await chrome.storage.local.get(["token", "siteUrl"]);
if (!token || !siteUrl) {
throw new Error("未指定 Token 或站点地址");
}
// 添加手办
if (req.body.action === "addToy") {
const { values } = req.body;