{"id":3446,"date":"2026-05-17T23:13:45","date_gmt":"2026-05-17T15:13:45","guid":{"rendered":""},"modified":"2026-05-17T23:17:52","modified_gmt":"2026-05-17T15:17:52","slug":"%e5%ae%89%e5%8d%93webview%e7%94%b5%e8%a7%86v2-1-1%e6%b8%85%e7%88%bd%e7%89%88-%e5%bc%80%e6%ba%90%e7%94%b5%e8%a7%86%e7%9b%b4%e6%92%ad","status":"publish","type":"post","link":"https:\/\/www.souziyuan.top\/index.php\/archives\/3446","title":{"rendered":"\u5b89\u5353WebView\u7535\u89c6v2.1.1\u6e05\u723d\u7248 \u5f00\u6e90\u7535\u89c6\u76f4\u64ad"},"content":{"rendered":"<p>\n\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.678667.com\/content\/uploadfile\/202504\/61161744944238.jpg\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" alt=\"1744873518-2909bad6fd2dc36.jpg\" border=\"0\" width=\"1408\" height=\"700\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.678667.com\/content\/uploadfile\/202504\/2d611744944239.jpg\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" alt=\"1744873512-83706564ff024cc.jpg\" border=\"0\" width=\"1405\" height=\"692\" \/><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.678667.com\/content\/uploadfile\/202504\/280e1744944239.jpg\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" alt=\"1744873523-1e1ef3d38662933.jpg\" border=\"0\" width=\"941\" height=\"530\" \/>\n<\/p>\n<p>\n\t\u8fd9\u6b3e\u57fa\u4e8e\u817e\u8bafX5 WebView\u5185\u6838\u5f00\u53d1\u7684\u7535\u89c6\u76f4\u64ad\u5e94\u7528\u7a0b\u5e8f\u5e26\u6765\u4e86\u4f18\u5316\u8fc7\u7684\u76f4\u64ad\u89c2\u770b\u4f53\u9a8c\u3002\u5e94\u7528\u901a\u8fc7\u9ad8\u6548\u5730\u52a0\u8f7d\u5b98\u65b9\u76f4\u64ad\u5e94\u7528\uff0c\u81ea\u52a8\u68c0\u6d4b\u7f51\u7ad9\u4e2d\u7684video\u6807\u7b7e\uff0c\u5e76\u5b9e\u73b0\u89c6\u9891\u7684\u5168\u5c4f\u64ad\u653e\uff0c\u6709\u6548\u63d0\u5347\u4e86\u89c2\u770b\u76f4\u64ad\u7684\u6d41\u7545\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u6838\u5fc3\u539f\u7406\uff1a<br \/>\n&#8211; \u8be5\u5e94\u7528\u5229\u7528\u817e\u8bafX5 WebView\u7684\u5f3a\u5927\u89e3\u6790\u548c\u6e32\u67d3\u80fd\u529b\uff0c\u5feb\u901f\u52a0\u8f7d\u5b98\u65b9\u76f4\u64ad\u7f51\u9875\u3002<br \/>\n&#8211; \u81ea\u52a8\u8bc6\u522b\u7f51\u9875\u4e2d\u7684video\u6807\u7b7e\uff0c\u5c06\u89c6\u9891\u5168\u5c4f\u5c55\u793a\uff0c\u6781\u5927\u7b80\u5316\u4e86\u76f4\u64ad\u89c6\u9891\u7684\u64ad\u653e\u8fc7\u7a0b\u3002<\/p>\n<p>\u4e3b\u8981\u529f\u80fd\uff1a<br \/>\n&#8211; \u81ea\u52a8\u66f4\u65b0\u9891\u9053\u5217\u8868\uff1a\u5e94\u7528\u4f1a\u81ea\u52a8\u66f4\u65b0\u76f4\u64ad\u9891\u9053\uff0c\u786e\u4fdd\u7528\u6237\u603b\u80fd\u63a5\u89e6\u5230\u6700\u65b0\u7684\u5185\u5bb9\u3002<br \/>\n&#8211; \u591a\u76f4\u64ad\u6e90\u652f\u6301\uff1a\u652f\u6301\u591a\u4e2a\u76f4\u64ad\u6e90\uff0c\u63d0\u9ad8\u76f4\u64ad\u7684\u53ef\u9760\u6027\u3002<br \/>\n&#8211; \u64ad\u653e\u5f02\u5e38\u81ea\u52a8\u6362\u6e90\/\u5237\u65b0\uff1a\u5f53\u64ad\u653e\u51fa\u73b0\u95ee\u9898\u65f6\uff0c\u5e94\u7528\u4f1a\u81ea\u52a8\u5c1d\u8bd5\u5176\u4ed6\u6e90\u6216\u5237\u65b0\u9875\u9762\uff0c\u51cf\u5c11\u64ad\u653e\u4e2d\u65ad\u3002<br \/>\n&#8211; \u5e94\u7528\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff1a\u7528\u6237\u53ef\u4ee5\u6839\u636e\u4e2a\u4eba\u504f\u597d\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5982\u542f\u52a8\u81ea\u52a8\u64ad\u653e\u7b49\u3002<br \/>\n&#8211; \u9002\u914d\u591a\u79cd\u8bbe\u5907\uff1a\u517c\u5bb9\u624b\u673a\u3001\u5e73\u677f\u548c\u7535\u89c6\uff0c\u754c\u9762\u5728\u4e0d\u540c\u8bbe\u5907\u4e0a\u5747\u53ef\u4f18\u5316\u5c55\u793a\u3002<\/p>\n<p>\u4f18\u52bf\uff1a<br \/>\n&#8211; \u7a33\u5b9a\u53ef\u9760\uff1a\u76f4\u63a5\u4f7f\u7528\u5b98\u7f51\u76f4\u64ad\u94fe\u63a5\uff0c\u51cf\u5c11\u4e86\u64ad\u653e\u6545\u969c\u7684\u53ef\u80fd\u3002<br \/>\n&#8211; \u517c\u5bb9\u6027\uff1a\u652f\u6301\u64ad\u653em3u8\u7b49\u6d41\u884c\u683c\u5f0f\u7684\u94fe\u63a5\u3002<\/p>\n<p>\u5c40\u9650\uff1a<br \/>\n&#8211; \u52a0\u8f7d\u65f6\u95f4\uff1a\u76f4\u64ad\u52a0\u8f7d\u65f6\u95f4\u76f8\u5bf9\u8f83\u957f\uff0c\u7528\u6237\u521d\u6b21\u89c2\u770b\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u3002<br \/>\n&#8211; \u786c\u4ef6\u8981\u6c42\uff1a\u5bf9\u8bbe\u5907\u6027\u80fd\u6709\u4e00\u5b9a\u8981\u6c42\uff0c\u4f4e\u6027\u80fd\u8bbe\u5907\u53ef\u80fd\u4f53\u9a8c\u4e0d\u4f73\u3002<br \/>\n&#8211; \u6e05\u6670\u5ea6\u9009\u62e9\uff1a\u6682\u4e0d\u652f\u6301\u81ea\u9009\u89c6\u9891\u6e05\u6670\u5ea6\u3002<\/p>\n<p>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54 (FAQ)\uff1a<br \/>\n&#8211; Q: \u7535\u89c6\u6216\u7535\u89c6\u76d2\u5b50\u4e0a\u65e0\u6cd5\u81ea\u52a8\u5168\u5c4f\u64ad\u653e\u600e\u4e48\u529e\uff1f<br \/>\n&#8211; A: \u8fd9\u53ef\u80fd\u662f\u7531\u4e8e\u8bbe\u5907\u7684WebView\u95ee\u9898\u3002\u7b49\u5f85X5\u5185\u6838\u5b8c\u5168\u4e0b\u8f7d\u4e14\u5b89\u88c5\u540e\u91cd\u65b0\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\u3002\u5982\u679cX5\u5185\u6838\u6ca1\u6709\u81ea\u52a8\u4e0b\u8f7d\uff0c\u60a8\u53ef\u4ee5\u5728\u8bbe\u7f6e\u4e2d\u7684TBS\u8c03\u8bd5\u754c\u9762\u624b\u52a8\u5b89\u88c5\u3002<\/p>\n<p>&#8211; Q: \u4e3a\u4ec0\u4e48\u6211\u6253\u5f00\u540e\u53ea\u80fd\u770b\u5230CCTV-1\u9891\u9053\uff1f<br \/>\n&#8211; A: \u9891\u9053\u5217\u8868\u662f\u6258\u7ba1\u5728Github\u4e0a\u7684\uff0c\u82e5\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\uff0c\u8bf7\u68c0\u67e5\u60a8\u7684\u8bbe\u5907\u662f\u5426\u80fd\u6b63\u5e38\u8bbf\u95eeGithub\u3002<\/p>\n<p>\u9891\u9053\u5217\u8868\u6258\u7ba1\u5728Github\uff0c\u5982\u679c\u4f60\u5b89\u88c5\u540e\u6ca1\u6709\u9891\u9053\u5217\u8868\uff0c\u6216\u8005\u52a0\u8f7d\u6162\uff0c\u90a3\u5c31\u662f\u4f60\u7684\u7f51\u7edc\u65e0\u6cd5\u8bbf\u95eeGithub<\/p>\n<p>\u8fd9\u6b3e\u76f4\u64ad\u5e94\u7528\u5c06\u73b0\u4ee3Web\u6280\u672f\u4e0e\u76f4\u64ad\u9700\u6c42\u76f8\u7ed3\u5408\uff0c\u65e8\u5728\u63d0\u4f9b\u66f4\u4e3a\u4fbf\u6377\u548c\u7a33\u5b9a\u7684\u76f4\u64ad\u89c2\u770b\u9009\u9879\uff0c\u9002\u5408\u5404\u79cd\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6237\u3002\n<\/p>\n<p>\n\t\u9891\u9053\u5217\u8868\u6258\u7ba1\u5728Github\uff0c\u5982\u679c\u4f60\u5b89\u88c5\u540e\u6ca1\u6709\u9891\u9053\u5217\u8868\uff0c\u6216\u8005\u52a0\u8f7d\u6162\uff0c\u90a3\u5c31\u662f\u4f60\u7684\u7f51\u7edc\u65e0\u6cd5\u8bbf\u95eeGithub\n<\/p>\n<p>\n\t\u8fd9\u6b3e\u76f4\u64ad\u5e94\u7528\u5c06\u73b0\u4ee3Web\u6280\u672f\u4e0e\u76f4\u64ad\u9700\u6c42\u76f8\u7ed3\u5408\uff0c\u65e8\u5728\u63d0\u4f9b\u66f4\u4e3a\u4fbf\u6377\u548c\u7a33\u5b9a\u7684\u76f4\u64ad\u89c2\u770b\u9009\u9879\uff0c\u9002\u5408\u5404\u79cd\u4e0d\u540c\u9700\u6c42\u7684\u7528\u6237\u3002\u7535\u89c6\u76d2\u5b50<\/p>\n<p>\u66f4\u65b0\u65e5\u5fd7<br \/>\nv2.1.1<\/p>\n<p>1. \u7531\u4e8e\u4e0d\u7a33\u5b9a\uff0c\u3010\u81ea\u52a8\u5c0f\u7a97\u64ad\u653e\u3011\u6dfb\u52a0\u5b9e\u9a8c\u6027\u6807\u5fd7<br \/>\n2. \u4fee\u590d\u8f6f\u4ef6\u5728\u4f4e\u7248\u672c\u7cfb\u7edf\u6253\u5f00\u5d29\u6e83\u7684\u95ee\u9898<br \/>\n3. \u4fee\u590d\u5076\u73b0\u6570\u5b57\u6362\u53f0\u5bfc\u81f4\u5d29\u6e83<\/p>\n<p>v2.0.0<\/p>\n<p>\u66f4\u65b0\u5185\u5bb9\uff1a<br \/>\n1. \u65b0\u589e\uff1a\u53ef\u9009\u62e9\u201c\u9891\u9053\u5217\u8868\u98ce\u683c\u201d\uff08\u5355\u6392\uff0c\u53cc\u6392\uff09<br \/>\n2. \u65b0\u589e\uff1a\u53ef\u9009\u62e9\u201c\u6362\u53f0\u98ce\u683c\u201d\uff08\u98ce\u683c\u4e00\u662f\u9891\u9053\u6761\uff0c\u98ce\u683c\u4e8c\u662f\u5168\u5c4f\u8bfb\u53d6\u906e\u7f69\uff09<br \/>\n3. \u65b0\u589e\uff1a\u53ef\u9009\u62e9\u662f\u5426\u81ea\u52a8\u5168\u5c4f\u64ad\u653e\uff08\u9ed8\u8ba4\u5173\u95ed\uff09<br \/>\n4. \u65b0\u589e\uff1a\u9002\u914d\u4e00\u4e9b\u9700\u8981\u70b9\u51fb\u4e24\u6b21\u7684\u7f51\u9875\uff08\u8292\u679c\u53f0\u7f51\u7ad9\uff09<br \/>\n5. \u4f18\u5316\uff1a\u754c\u9762\u989c\u8272\u5fae\u8c03<br \/>\n6. \u4f18\u5316\uff1a\u8fdb\u5165\u201cTBS\u8c03\u8bd5\u754c\u9762\u201d\uff0c\u4f1a\u81ea\u52a8\u8be2\u95ee\u662f\u5426\u9700\u8981\u5b89\u88c5X5\u5185\u6838<br \/>\n7. \u4f18\u5316\uff1a\u82e5\u8bbe\u5907\u4e0d\u652f\u6301X5\u5185\u6838\uff0c\u4f1a\u63d0\u793a<br \/>\n8. \u4f18\u5316\uff1a\u4f18\u5316\u7126\u70b9\u903b\u8f91\u5e76\u59cb\u7ec8\u5b9a\u4f4d\u5728\u754c\u9762\u4e2d\u592e<br \/>\n9. \u4f18\u5316\uff1a\u652f\u6301\u7533\u8bf7\u66f4\u591a\u5185\u5b58\uff0c\u51cf\u5c11\u56e0\u5185\u5b58\u4e0d\u8db3\u4ea7\u751f\u7684\u5f02\u5e38<br \/>\n10. \u66f4\u6539\uff1a\u4e0d\u518d\u652f\u6301 1GB \u8fd0\u884c\u5185\u5b58\uff08\u542b\uff09\u53ca\u4ee5\u4e0b\u7684\u8bbe\u5907\n<\/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>\u8fd9\u6b3e\u57fa\u4e8e\u817e\u8bafX5 WebView\u5185\u6838\u5f00\u53d1\u7684\u7535\u89c6\u76f4\u64ad\u5e94\u7528\u7a0b\u5e8f\u5e26\u6765\u4e86\u4f18\u5316\u8fc7\u7684\u76f4\u64ad\u89c2\u770b\u4f53\u9a8c\u3002\u5e94\u7528\u901a\u8fc7\u9ad8\u6548\u5730\u52a0\u8f7d\u5b98\u65b9\u76f4 [&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-3446","post","type-post","status-publish","format-standard","hentry","category-anzhuoyingshi"],"_links":{"self":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/3446","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=3446"}],"version-history":[{"count":1,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/3446\/revisions"}],"predecessor-version":[{"id":3457,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/3446\/revisions\/3457"}],"wp:attachment":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/media?parent=3446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/categories?post=3446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/tags?post=3446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}