{"id":4565,"date":"2026-06-12T00:07:16","date_gmt":"2026-06-11T16:07:16","guid":{"rendered":""},"modified":"2026-06-12T23:41:40","modified_gmt":"2026-06-12T15:41:40","slug":"%e5%ae%89%e5%8d%93%e5%b0%8f%e6%9f%bf%e5%ad%90%e5%bd%b1%e8%a7%86v2-1-1%e7%83%ad%e9%97%a8%e5%bd%b1%e8%a7%86%e8%b5%84%e6%ba%90%e5%8e%bb%e5%b9%bf%e5%91%8a%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.souziyuan.top\/index.php\/archives\/4565","title":{"rendered":"\u5b89\u5353\u5c0f\u67ff\u5b50\u5f71\u89c6v2.1.1\u70ed\u95e8\u5f71\u89c6\u8d44\u6e90\u53bb\u5e7f\u544a\u7248"},"content":{"rendered":"<p>\n\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.678667.com\/content\/uploadfile\/202407\/59201721357313.jpg\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" alt=\"HT_20240719104647.jpg\" border=\"0\" width=\"2160\" height=\"1920\" \/>\n<\/p>\n<p>\n\t\u8f6f\u4ef6\u4ecb\u7ecd\n<\/p>\n<p>\u5c0f\u67ff\u5b50\u5f71\u89c6app2024\u6700\u65b0\u7248\u4e0b\u8f7d\u662f\u4e00\u6b3e\u514d\u8d39\u7684\u624b\u673a\u5f71\u89c6\u64ad\u653e\u8f6f\u4ef6\uff0c\u8f6f\u4ef6\u5185\u6709\u7740\u6d77\u91cf\u7684\u5f71\u89c6\u8d44\u6e90\uff0c\u65e0\u8bba\u662f\u5168\u7f51\u6700\u65b0\u63a8\u51fa\u7684\u8fd8\u662f\u5168\u7f51\u6700\u70ed\u5728\u8fd9\u91cc\u7edf\u7edf\u53ef\u4ee5\u627e\u5f97\u5230\uff0c\u8f7b\u677e\u6ee1\u8db3\u4e0d\u540c\u7528\u6237\u7684\u89c2\u770b\u9700\u6c42\uff0c\u89c2\u770b\u5168\u5267\u65e0\u9700\u5145\u503c\u4f1a\u5458\uff0c\u4e5f\u6ca1\u6709\u63d2\u64ad\u5e7f\u544a\u7684\u70e6\u607c\uff0c\u53ea\u4e3a\u7ed9\u7528\u6237\u5e26\u6765\u6700\u597d\u7684\u89c2\u770b\u4f53\u9a8c\u3002<br \/>\n\u5173\u4e8e\u7248\u672c<br \/>\nBy zhou45<br \/>\n\u53bb\u5e7f\u544a<br \/>\n\u7cbe\u7b80\u5e03\u5c40<\/p>\n<p>\t<i class=\"ico\"><\/i>\u4e0b\u8f7d\u5730\u5740\uff1a<br \/>\n<div style=\"padding:15px;background:#f5f5f5;border-radius:4px;color:#666;text-align:center;\">\n            \ud83d\udd12 \u5269\u4f59\u5185\u5bb9\u5df2\u9690\u85cf\uff0c\u8bf7<a href=\"javascript:void(0);\" onclick=\"openAeroLoginAndForceRefresh()\" style=\"color:#007bff;text-decoration:underline;cursor:pointer;\">\u70b9\u51fb\u767b\u5f55<\/a>\u540e\u67e5\u770b\u5b8c\u6574\u5185\u5bb9<\/br>(\u5df2\u767b\u5f55\u540e\u8bf7\u5237\u65b0\u9875\u9762)\n        <\/div>\n        <script>\n        function openAeroLoginAndForceRefresh() {\n            \/\/ 1. \u5148\u5524\u8d77\u4e3b\u9898\u7684\u767b\u5f55\u5f39\u7a97\n            document.getElementById(\"login-trigger\").click();\n            \n            \/\/ 2. \u5b9a\u4e49\u767b\u5f55\u6210\u529f\u540e\u7684\u5237\u65b0\u51fd\u6570\uff08\u5e26\u968f\u673a\u53c2\u6570\u5f3a\u5236\u8df3\u8fc7\u7f13\u5b58\uff09\n            function forceRefreshPage() {\n                \/\/ \u6dfb\u52a0\u65f6\u95f4\u6233\u53c2\u6570\uff0c\u5f3a\u5236\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u91cd\u65b0\u52a0\u8f7d\u9875\u9762\uff0c\u8df3\u8fc7\u6240\u6709\u7f13\u5b58\n                window.location.href = window.location.pathname + \"?t=\" + Date.now() + window.location.hash;\n            }\n            \n            \/\/ 3. \u7b2c\u4e00\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cbody\u7684class\u53d8\u5316\uff08\u6807\u51c6\u60c5\u51b5\uff09\n            const classObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    if (mutation.target.classList.contains(\"logged-in\")) {\n                        forceRefreshPage();\n                        classObserver.disconnect();\n                        cookieObserver.disconnect();\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            classObserver.observe(document.body, {\n                attributes: true,\n                attributeFilter: [\"class\"]\n            });\n            \n            \/\/ 4. \u7b2c\u4e8c\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cWordPress\u767b\u5f55cookie\uff08\u6700\u53ef\u9760\uff09\n            let cookieObserver = setInterval(function() {\n                \/\/ \u68c0\u6d4b\u662f\u5426\u5b58\u5728WordPress\u767b\u5f55cookie\n                if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                    forceRefreshPage();\n                    clearInterval(cookieObserver);\n                    classObserver.disconnect();\n                    modalObserver.disconnect();\n                }\n            }, 500); \/\/ \u6bcf500\u6beb\u79d2\u68c0\u6d4b\u4e00\u6b21\n            \n            \/\/ 5. \u7b2c\u4e09\u91cd\u68c0\u6d4b\uff1a\u76d1\u542c\u767b\u5f55\u5f39\u7a97\u5173\u95ed\u4e8b\u4ef6\uff08\u515c\u5e95\uff09\n            const modalObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    \/\/ \u68c0\u6d4b\u767b\u5f55\u5f39\u7a97\u662f\u5426\u88ab\u9690\u85cf\n                    const loginModal = document.getElementById(\"login-modal\");\n                    if (loginModal && window.getComputedStyle(loginModal).display === \"none\") {\n                        \/\/ \u5f39\u7a97\u5173\u95ed\u540e\u5ef6\u8fdf1\u79d2\u518d\u68c0\u6d4bcookie\uff0c\u9632\u6b62\u767b\u5f55\u8fd8\u6ca1\u5b8c\u6210\n                        setTimeout(function() {\n                            if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                                forceRefreshPage();\n                            }\n                        }, 1000);\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            \/\/ \u76d1\u542c\u767b\u5f55\u5f39\u7a97\u7684\u663e\u793a\u72b6\u6001\u53d8\u5316\n            const loginModal = document.getElementById(\"login-modal\");\n            if (loginModal) {\n                modalObserver.observe(loginModal, {\n                    attributes: true,\n                    attributeFilter: [\"style\", \"class\"]\n                });\n            }\n            \n            \/\/ 6. 15\u79d2\u540e\u81ea\u52a8\u505c\u6b62\u6240\u6709\u68c0\u6d4b\uff0c\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f\n            setTimeout(function() {\n                classObserver.disconnect();\n                clearInterval(cookieObserver);\n                modalObserver.disconnect();\n            }, 15000);\n        }\n        <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6f\u4ef6\u4ecb\u7ecd \u5c0f\u67ff\u5b50\u5f71\u89c6app2024\u6700\u65b0\u7248\u4e0b\u8f7d\u662f\u4e00\u6b3e\u514d\u8d39\u7684\u624b\u673a\u5f71\u89c6\u64ad\u653e\u8f6f\u4ef6\uff0c\u8f6f\u4ef6\u5185\u6709\u7740\u6d77\u91cf\u7684\u5f71\u89c6\u8d44\u6e90\uff0c\u65e0\u8bba\u662f\u5168\u7f51 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-4565","post","type-post","status-publish","format-standard","hentry","category-anzhuoyingshi"],"_links":{"self":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/4565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/comments?post=4565"}],"version-history":[{"count":1,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/4565\/revisions"}],"predecessor-version":[{"id":4566,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/4565\/revisions\/4566"}],"wp:attachment":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/media?parent=4565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/categories?post=4565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/tags?post=4565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}