{"id":221,"date":"2026-04-16T20:32:36","date_gmt":"2026-04-16T12:32:36","guid":{"rendered":"https:\/\/blog.lqay.cn\/?page_id=221"},"modified":"2026-04-16T20:32:37","modified_gmt":"2026-04-16T12:32:37","slug":"link_modify_form","status":"publish","type":"page","link":"https:\/\/blog.lqay.cn\/index.php\/link_modify_form\/","title":{"rendered":"\u4fee\u6539\u53cb\u60c5\u94fe\u63a5"},"content":{"rendered":"<form class=\"fabb-modify-form\" method=\"post\" action=\"https:\/\/blog.lqay.cn\/wp-admin\/admin-post.php\" style=\"max-width:800px;margin:0 auto;\"><input type=\"hidden\" id=\"fabb_modify_form_nonce_field\" name=\"fabb_modify_form_nonce_field\" value=\"b58cbfd549\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/221\" \/><input type=\"hidden\" name=\"action\" value=\"link_modify_submit\">\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_verify_url\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u60a8\u7684\u7f51\u7ad9\u94fe\u63a5\u5730\u5740 <span style=\"color:red;\">*<\/span><\/label>\n        <input type=\"url\" name=\"fabb_verify_url\" id=\"fabb_verify_url\" required style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u8bf7\u8f93\u5165\u60a8\u5df2\u6dfb\u52a0\u7684\u7f51\u7ad9\u5b8c\u6574\u94fe\u63a5\">\n        <p class=\"description\" style=\"margin-top:5px;color:#666;\">\u7528\u4e8e\u9a8c\u8bc1\u60a8\u7684\u8eab\u4efd\uff0c\u5fc5\u987b\u4e0e\u7533\u8bf7\u65f6\u586b\u5199\u7684\u4e00\u81f4<\/p>\n    <\/div>\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_verify_email\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u7533\u8bf7\u65f6\u7684\u8054\u7cfb\u90ae\u7bb1 <span style=\"color:red;\">*<\/span><\/label>\n        <div style=\"display:flex;gap:10px;align-items:flex-end;\">\n            <input type=\"email\" name=\"fabb_verify_email\" id=\"fabb_verify_email\" required style=\"flex:1;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u8bf7\u8f93\u5165\u7533\u8bf7\u65f6\u586b\u5199\u7684\u8054\u7cfb\u90ae\u7bb1\">\n            \n            <button type=\"button\" id=\"fabb_send_code_btn\" style=\"padding:12px 20px;background:#4ecdc4;color:#fff;border:none;border-radius:8px;cursor:pointer;white-space:nowrap;\">\u53d1\u9001\u9a8c\u8bc1\u7801<\/button>\n            \n        <\/div>\n    <\/div>\n    \n        <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n            <label for=\"fabb_verify_code\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u90ae\u7bb1\u9a8c\u8bc1\u7801 <span style=\"color:red;\">*<\/span><\/label>\n            <input type=\"text\" name=\"fabb_verify_code\" id=\"fabb_verify_code\" required style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u8bf7\u8f93\u5165\u90ae\u7bb1\u6536\u5230\u76846\u4f4d\u6570\u5b57\u9a8c\u8bc1\u7801\">\n        <\/div>\n        \n    <hr style=\"margin:30px 0;border:none;border-top:1px solid #eee;\">\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_new_name\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u65b0\u7684\u7f51\u7ad9\u540d\u79f0<\/label>\n        <input type=\"text\" name=\"fabb_new_name\" id=\"fabb_new_name\" style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u4e0d\u4fee\u6539\u8bf7\u7559\u7a7a\">\n    <\/div>\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_new_url\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u65b0\u7684\u7f51\u7ad9\u94fe\u63a5\u5730\u5740<\/label>\n        <input type=\"url\" name=\"fabb_new_url\" id=\"fabb_new_url\" style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u4e0d\u4fee\u6539\u8bf7\u7559\u7a7a\">\n    <\/div>\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_new_image\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u65b0\u7684\u7f51\u7ad9\u56fe\u6807\u5730\u5740<\/label>\n        <input type=\"url\" name=\"fabb_new_image\" id=\"fabb_new_image\" style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u4e0d\u4fee\u6539\u8bf7\u7559\u7a7a\">\n        <div id=\"fabb_new_image_preview\" style=\"margin-top:8px;display:none;\">\n            <img decoding=\"async\" src=\"\" id=\"fabb_new_preview_img\" style=\"width:32px;height:32px;border-radius:4px;\" alt=\"\u65b0\u56fe\u6807\u9884\u89c8\">\n        <\/div>\n    <\/div>\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_new_rss\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u65b0\u7684RSS\u8ba2\u9605\u5730\u5740<\/label>\n        <input type=\"url\" name=\"fabb_new_rss\" id=\"fabb_new_rss\" style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;\" placeholder=\"\u4e0d\u4fee\u6539\u8bf7\u7559\u7a7a\">\n    <\/div>\n    <div class=\"fabb-form-group\" style=\"margin-bottom:20px;\">\n        <label for=\"fabb_new_desc\" style=\"display:block;margin-bottom:8px;font-weight:600;\">\u65b0\u7684\u7f51\u7ad9\u4ecb\u7ecd<\/label>\n        <textarea name=\"fabb_new_desc\" id=\"fabb_new_desc\" rows=\"4\" style=\"width:100%;padding:12px;border:1px solid #e0e0e0;border-radius:8px;box-sizing:border-box;resize:vertical;\" placeholder=\"\u4e0d\u4fee\u6539\u8bf7\u7559\u7a7a\"><\/textarea>\n    <\/div>\n    <div class=\"fabb-form-submit\" style=\"margin-top:30px;\">\n        <button type=\"submit\" style=\"padding:12px 30px;background:#4ecdc4;color:#fff;border:none;border-radius:8px;font-size:16px;cursor:pointer;\">\u63d0\u4ea4\u4fee\u6539\u7533\u8bf7<\/button>\n    <\/div>\n    <\/form>\n        <script type=\"text\/javascript\">\n        document.addEventListener(\"DOMContentLoaded\", function() {\n            const sendCodeBtn = document.getElementById(\"fabb_send_code_btn\");\n            let countdown = 0;\n            sendCodeBtn.addEventListener(\"click\", function() {\n                if (countdown > 0) return;\n                \n                const email = document.getElementById(\"fabb_verify_email\").value.trim();\n                const url = document.getElementById(\"fabb_verify_url\").value.trim();\n                \n                if (!email || !isValidEmail(email)) {\n                    alert(\"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740\");\n                    return;\n                }\n                if (!url) {\n                    alert(\"\u8bf7\u5148\u8f93\u5165\u7f51\u7ad9\u94fe\u63a5\u5730\u5740\");\n                    return;\n                }\n                fetch(\"https:\/\/blog.lqay.cn\/wp-admin\/admin-post.php\", {\n                    method: \"POST\",\n                    headers: {\n                        \"Content-Type\": \"application\/x-www-form-urlencoded\",\n                    },\n                    body: \"action=fabb_send_verify_code&email=\" + encodeURIComponent(email) + \"&url=\" + encodeURIComponent(url) + \"&_wpnonce=e6288b70c1\"\n                }).then(response => response.text()).then(result => {\n                    if (result === \"success\") {\n                        countdown = 60;\n                        sendCodeBtn.disabled = true;\n                        const timer = setInterval(() => {\n                            sendCodeBtn.textContent = countdown + \"s \u540e\u91cd\u53d1\";\n                            countdown--;\n                            if (countdown <= 0) {\n                                clearInterval(timer);\n                                sendCodeBtn.textContent = \"\u53d1\u9001\u9a8c\u8bc1\u7801\";\n                                sendCodeBtn.disabled = false;\n                            }\n                        }, 1000);\n                        window.location.href = \"\/index.php\/wp-json\/wp\/v2\/pages\/221?code_sent=1\";\n                    } else {\n                        alert(\"\u9a8c\u8bc1\u7801\u53d1\u9001\u5931\u8d25\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5\");\n                    }\n                });\n            });\n            function isValidEmail(email) {\n                return \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/.test(email);\n            }\n            const newImageInput = document.getElementById(\"fabb_new_image\");\n            const newPreviewWrap = document.getElementById(\"fabb_new_image_preview\");\n            const newPreviewImg = document.getElementById(\"fabb_new_preview_img\");\n            newImageInput.addEventListener(\"blur\", function() {\n                const imgUrl = this.value.trim();\n                if (imgUrl) {\n                    newPreviewImg.src = imgUrl;\n                    newPreviewWrap.style.display = \"block\";\n                } else {\n                    newPreviewWrap.style.display = \"none\";\n                }\n            });\n        });\n        <\/script>\n        \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-221","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/pages\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/comments?post=221"}],"version-history":[{"count":0,"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/pages\/221\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.lqay.cn\/index.php\/wp-json\/wp\/v2\/media?parent=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}