{"id":1813,"date":"2025-09-16T11:32:26","date_gmt":"2025-09-16T11:32:26","guid":{"rendered":"https:\/\/wintendo.cloudns.biz\/?p=1813"},"modified":"2025-12-19T08:15:12","modified_gmt":"2025-12-19T08:15:12","slug":"assignment-submission","status":"publish","type":"post","link":"https:\/\/wintendo.cloudns.biz\/index.php\/2025\/09\/16\/assignment-submission\/","title":{"rendered":"\u00a0\u4f5c\u4e1a\u63d0\u4ea4\u9875\u9762\u8bbe\u8ba1"},"content":{"rendered":"\n<p>\u597d\u7684\uff0c\u73b0\u5728\u8bf7\u4f60\u603b\u7ed3\u4e00\u4e0b\u6211\u4eec\u6574\u4e2a\u7684\u5b89\u88c5\u8bbe\u8ba1\u90e8\u7f72\u8fc7\u7a0b\u3002\u6211\u5e0c\u671b\u5305\u62ec\uff1a1\u3001\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u529e\u6cd5\uff1b2\u3001\u8bbe\u8ba1\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u7684\u5730\u65b9\uff0c\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u65b9\u6848\uff1b3\u3001\u6d4b\u8bd5\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u7684\u5730\u65b9\uff0c\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5c3d\u53ef\u80fd\u7684\u8be6\u7ec6\uff0c\u4fbf\u4e8e\u5c06\u6765\u56de\u987e\u3002&nbsp;<\/p>\n\n\n\n<p>\u5f88\u9ad8\u5174\u4e3a\u4f60\u603b\u7ed3\u6211\u4eec\u8fd9\u6b21\u4ece\u5934\u5230\u5c3e\u7684\u5408\u4f5c\u8fc7\u7a0b\u3002\u8fd9\u4e2a\u603b\u7ed3\u5c06\u6db5\u76d6\u4f60\u5728\u5404\u4e2a\u9636\u6bb5\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3001\u539f\u56e0\u4ee5\u53ca\u6211\u4eec\u6700\u7ec8\u627e\u5230\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>0. \u4f7f\u7528\u5907\u5fd8<\/strong><\/p>\n\n\n\n<p>A\u3001\u8fd9\u662f\u90e8\u7f72\u5728cloudflare worker\u4e0a\u7684\u57fa\u4e8eR2\u5b58\u50a8\u7684\u4f5c\u4e1a\u63d0\u4ea4\u7cfb\u7edf\uff1b<\/p>\n\n\n\n<p>B\u3001\u6e90\u7801\u5728daban vmse2-2\u673a\u5668\u7684cloudflare-worker\u76ee\u5f55\u4e2d\uff0c\u6e90\u7801\u662findex.ts<\/p>\n\n\n\n<p>C\u3001\u901a\u8fc7wrangler deploy\u8fdb\u884c\u90e8\u7f72\uff08\u6bcf\u6b21\u4fee\u6539\u540e\u90fd\u9700\u8981\u91cd\u65b0\u90e8\u7f72\uff09\uff1b\u5982\u679c\u95f4\u9694\u65f6\u95f4\u8fc7\u957f\uff0c\u6267\u884cwrangler deploy\u4f1a\u8981\u6c42\u5148\u6267\u884cwrangler login\uff08\u91cd\u65b0\u6388\u6743\uff09<\/p>\n\n\n\n<p>D\u3001\u4f5c\u4e1a\u63d0\u4ea4\u6d41\u7a0b\u662f\u5148\u5230\u5bc6\u7801\u767b\u5f55\u9875\u9762\uff0c\u6b63\u786e\u8f93\u5165\u5bc6\u7801\u540e\uff0c\u65b9\u53ef\u8df3\u8f6c\u5230\u4f5c\u4e1a\u63d0\u4ea4\u9875\u9762\uff08\u767b\u5f55\u9875\u9762URL\u548c\u5bc6\u7801\u653e\u5728cloudflare-worker\u76ee\u5f55\u7684\u7279\u5b9aworker\u8def\u5f84\u7684wrangler.jsonc\u6587\u4ef6\u4e2d\uff09<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. \u5b89\u88c5\u9636\u6bb5\uff1a\u73af\u5883\u4e0e\u4f9d\u8d56<\/strong><\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u9636\u6bb5\u7684\u4e3b\u8981\u6311\u6218\u662f\u8ba9\u4f60\u7684 VPS \u73af\u5883\u51c6\u5907\u597d\u8fd0\u884c&nbsp;<code>npm<\/code>&nbsp;\u548c&nbsp;<code>wrangler<\/code>\uff0c\u5e76\u6210\u529f\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u95ee\u9898 1\uff1a<code>npm install<\/code>&nbsp;\u5931\u8d25\u5e76\u663e\u793a&nbsp;<code>Killed<\/code><\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: \u4f60\u7684 VPS \u5185\u5b58\u6216 CPU \u8d44\u6e90\u4e0d\u8db3\uff0c\u64cd\u4f5c\u7cfb\u7edf\u542f\u52a8\u4e86 OOM Killer \u673a\u5236\uff0c\u5f3a\u5236\u7ec8\u6b62\u4e86&nbsp;<code>npm install<\/code>&nbsp;\u8fdb\u7a0b\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u589e\u52a0 VPS \u7684 Swap \u7a7a\u95f4<\/strong>\u3002\u6211\u4eec\u901a\u8fc7\u521b\u5efa\u548c\u6fc0\u6d3b\u4e00\u4e2a Swap \u6587\u4ef6\uff0c\u4e3a\u7cfb\u7edf\u63d0\u4f9b\u4e86\u989d\u5916\u7684\u865a\u62df\u5185\u5b58\uff0c\u4ece\u800c\u6210\u529f\u5730\u8ba9&nbsp;<code>npm install<\/code>&nbsp;\u987a\u5229\u5b8c\u6210\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 2\uff1a<code>npm install<\/code>&nbsp;\u51fa\u73b0\u8b66\u544a\u548c\u6f0f\u6d1e\u63d0\u793a<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: \u4f9d\u8d56\u5e93\u672c\u8eab\u5b58\u5728\u5df2\u8fc7\u65f6\u7684\u7248\u672c\u6216\u5df2\u77e5\u7684\u5b89\u5168\u6f0f\u6d1e\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u5ffd\u7565\u6216\u9009\u62e9\u6027\u4fee\u590d<\/strong>\u3002\u5bf9\u4e8e\u4f60\u7684\u9879\u76ee\u800c\u8a00\uff0c\u8fd9\u4e9b\u8b66\u544a\u548c\u6f0f\u6d1e\u4e0d\u4f1a\u5f71\u54cd Worker \u7684\u529f\u80fd\u3002\u6700\u76f4\u63a5\u7684\u65b9\u6848\u662f\u5ffd\u7565\u5b83\u4eec\uff0c\u7ee7\u7eed\u8fdb\u884c\u90e8\u7f72\u3002\u5982\u679c\u9700\u8981\u4fee\u590d\uff0c\u53ef\u4ee5\u901a\u8fc7&nbsp;<code>npm audit fix<\/code>&nbsp;\u547d\u4ee4\uff0c\u4f46\u53ef\u80fd\u5f15\u5165\u4e0d\u517c\u5bb9\u7684\u53d8\u66f4\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 3\uff1a<code>npm install exceljs<\/code>&nbsp;\u5931\u8d25<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>:&nbsp;<code>exceljs<\/code>&nbsp;\u4f9d\u8d56\u4e8e\u4e00\u4e9b\u65e7\u7248\u672c\u7684&nbsp;<code>peer dependencies<\/code>\uff0c\u53ef\u80fd\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>: \u4f7f\u7528&nbsp;<code>npm install exceljs --legacy-peer-deps<\/code>&nbsp;\u547d\u4ee4\u3002\u8fd9\u4e2a\u6807\u5fd7\u4f1a\u544a\u8bc9&nbsp;<code>npm<\/code>&nbsp;\u5ffd\u7565\u4f9d\u8d56\u7248\u672c\u51b2\u7a81\uff0c\u4ece\u800c\u5f3a\u5236\u5b8c\u6210\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. \u8bbe\u8ba1\u5f00\u53d1\u9636\u6bb5\uff1a\u4ee3\u7801\u4e0e\u914d\u7f6e<\/strong><\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u9636\u6bb5\u7684\u91cd\u70b9\u662f\u914d\u7f6e&nbsp;<code>wrangler.jsonc<\/code>&nbsp;\u6587\u4ef6\uff0c\u5e76\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u4e0e\u5b83\u534f\u540c\u5de5\u4f5c\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u95ee\u9898 1\uff1a<code>wrangler.jsonc<\/code>&nbsp;\u914d\u7f6e\u9519\u8bef<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>:&nbsp;<code>wrangler<\/code>&nbsp;\u914d\u7f6e\u683c\u5f0f\u6709\u4e25\u683c\u8981\u6c42\uff0c\u5e38\u89c1\u7684\u9519\u8bef\u662f\u5b57\u6bb5\u4e0d\u5339\u914d\u3002\u4f8b\u5982\uff0c<code>zone_id<\/code>&nbsp;\u5e94\u8be5\u662f\u4e00\u4e2a ID \u5b57\u7b26\u4e32\u800c\u4e0d\u662f\u57df\u540d\uff0c<code>routes<\/code>&nbsp;\u5bf9\u8c61\u4e2d\u7684&nbsp;<code>rewrite<\/code>&nbsp;\u548c&nbsp;<code>route_name<\/code>&nbsp;\u7b49\u5b57\u6bb5\u4e0e\u5b57\u7b26\u4e32\u6a21\u5f0f\u4e0d\u517c\u5bb9\uff0c<code>custom_domain<\/code>&nbsp;\u4e0d\u80fd\u4e0e\u8def\u5f84\u4e00\u8d77\u4f7f\u7528\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u4e25\u683c\u9075\u5faa&nbsp;<code>wrangler<\/code>&nbsp;\u6587\u6863\u548c\u9519\u8bef\u63d0\u793a<\/strong>\u3002\u6700\u7ec8\u6211\u4eec\u627e\u5230\u4e86\u4e00\u4e2a\u7b80\u6d01\u7684\u3001\u4ec5\u5305\u542b\u6a21\u5f0f\u5b57\u7b26\u4e32\u7684&nbsp;<code>routes<\/code>&nbsp;\u914d\u7f6e\uff0c\u5b83\u80fd\u88ab&nbsp;<code>wrangler<\/code>&nbsp;\u6b63\u786e\u89e3\u6790\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 2\uff1a\u4ee3\u7801\u4e2d&nbsp;<code>URL<\/code>&nbsp;\u8def\u5f84\u4e0e\u8def\u7531\u4e0d\u5339\u914d<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: \u4f60\u5728&nbsp;<code>wrangler.jsonc<\/code>&nbsp;\u4e2d\u914d\u7f6e\u4e86\u5b50\u8def\u5f84 (<code>\/assign-sub\/*<\/code>)\uff0c\u4f46\u4f60\u7684 Worker \u4ee3\u7801\u671f\u671b&nbsp;<code>\/<\/code>\u3001<code>\/upload<\/code>\u7b49\u6839\u8def\u5f84\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u5728 Worker \u4ee3\u7801\u4e2d\u5904\u7406 URL \u91cd\u5199<\/strong>\u3002\u6211\u4eec\u4f7f\u7528\u4e86&nbsp;<code>let pathname = url.pathname.replace(\/^\\\/assign-sub(\\\/?)\/, '\/');<\/code>&nbsp;\u8bed\u53e5\uff0c\u5728\u4ee3\u7801\u4e2d\u5c06&nbsp;<code>assign-sub<\/code>&nbsp;\u5b50\u8def\u5f84\u79fb\u9664\uff0c\u786e\u4fdd\u4f60\u7684&nbsp;<code>switch<\/code>&nbsp;\u8bed\u53e5\u80fd\u6b63\u786e\u5904\u7406\u91cd\u5199\u540e\u7684\u8def\u5f84\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 3\uff1aHTML \u8868\u5355\u8def\u5f84\u95ee\u9898<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: HTML \u8868\u5355&nbsp;<code>action<\/code>&nbsp;\u5c5e\u6027\u7684\u76f8\u5bf9\u8def\u5f84\u89e3\u6790\u884c\u4e3a\u4e0e\u9884\u671f\u4e0d\u540c\uff0c\u5bfc\u81f4\u8868\u5355\u88ab\u63d0\u4ea4\u5230\u9519\u8bef\u7684 URL\u3002\u4f8b\u5982\uff0c<code>.\/submit-password<\/code>&nbsp;\u88ab\u6d4f\u89c8\u5668\u89e3\u6790\u4e3a&nbsp;<code>https:\/\/wintendo.cloudns.biz\/submit-password<\/code>\uff0c\u800c\u4e0d\u662f&nbsp;<code>https:\/\/wintendo.cloudns.biz\/assign-sub\/submit-password<\/code>\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u4f7f\u7528&nbsp;<code>assign-sub\/submit-password<\/code>&nbsp;\u8fd9\u79cd\u76f8\u5bf9\u8def\u5f84<\/strong>\u3002\u8fd9\u79cd\u8def\u5f84\u7684\u89e3\u6790\u65b9\u5f0f\u80fd\u786e\u4fdd URL \u4e2d\u5305\u542b&nbsp;<code>assign-sub<\/code>&nbsp;\u524d\u7f00\uff0c\u4ece\u800c\u88ab&nbsp;<code>wrangler<\/code>&nbsp;\u7684\u8def\u7531\u6b63\u786e\u6355\u83b7\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. \u6d4b\u8bd5\u4e0e\u90e8\u7f72\u9636\u6bb5\uff1a\u9a8c\u8bc1\u4e0e\u4e0a\u7ebf<\/strong><\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u9636\u6bb5\u7684\u6311\u6218\u662f\u5c06\u672c\u5730\u5f00\u53d1\u73af\u5883\u4e0e\u7ebf\u4e0a\u751f\u4ea7\u73af\u5883\u8fdb\u884c\u540c\u6b65\uff0c\u5e76\u9a8c\u8bc1\u5176\u529f\u80fd\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u95ee\u9898 1\uff1a<code>wrangler dev<\/code>&nbsp;\u672c\u5730\u6d4b\u8bd5\u65f6\uff0c\u6587\u4ef6\u65e0\u6cd5\u4e0a\u4f20\u5230 R2<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>:&nbsp;<code>wrangler dev<\/code>&nbsp;\u9ed8\u8ba4\u5728\u672c\u5730\u6a21\u62df R2 \u670d\u52a1\uff0c\u5e76\u4e0d\u4f1a\u8fde\u63a5\u5230\u4f60\u7684\u7ebf\u4e0a R2 Bucket\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u76f4\u63a5\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883<\/strong>\u3002\u672c\u5730\u6d4b\u8bd5\u7528\u4e8e\u9a8c\u8bc1\u4ee3\u7801\u903b\u8f91\uff0c\u7ebf\u4e0a\u90e8\u7f72\u624d\u80fd\u9a8c\u8bc1\u4e0e Cloudflare \u670d\u52a1\u7684\u5b9e\u9645\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 2\uff1a\u90e8\u7f72\u6210\u529f\u4f46 Worker URL \u6d88\u5931<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: \u5728&nbsp;<code>wrangler.jsonc<\/code>&nbsp;\u4e2d\u6dfb\u52a0\u4e86&nbsp;<code>\"workers_dev\": false<\/code>\uff0c\u660e\u786e\u544a\u8bc9&nbsp;<code>wrangler<\/code>&nbsp;\u4e0d\u518d\u4e3a\u4f60\u7684 Worker \u521b\u5efa\u514d\u8d39\u7684&nbsp;<code>workers.dev<\/code>&nbsp;\u5b50\u57df\u540d\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u5728 Cloudflare Dashboard \u4e2d\u624b\u52a8\u6dfb\u52a0\u81ea\u5b9a\u4e49\u57df\u540d\u8def\u7531<\/strong>\u3002\u901a\u8fc7\u914d\u7f6e\u8def\u7531\uff0c\u4f60\u5c06 Worker \u6302\u8f7d\u5230\u81ea\u5df1\u7684\u57df\u540d\u4e0a\uff0c\u800c\u4e0d\u662f\u4f9d\u8d56\u4e8e&nbsp;<code>workers.dev<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u95ee\u9898 3\uff1a<code>wrangler.jsonc<\/code>&nbsp;\u548c Cloudflare Dashboard \u7684\u8def\u7531\u4e0d\u4e00\u81f4<\/strong>\n<ul class=\"wp-block-list\">\n<li><strong>\u539f\u56e0<\/strong>: \u6211\u4eec\u5728\u672c\u5730\u914d\u7f6e\u4e86&nbsp;<code>routes<\/code>\uff0c\u4f46\u5728 Cloudflare \u4e0a\u5374\u6ca1\u6709\u76f8\u5e94\u7684\u8def\u7531\u3002<\/li>\n\n\n\n<li><strong>\u89e3\u51b3\u65b9\u6848<\/strong>:&nbsp;<strong>\u4ee5&nbsp;<code>wrangler.jsonc<\/code>&nbsp;\u4e3a\u552f\u4e00\u771f\u7406\u6765\u6e90<\/strong>\u3002\u5c06&nbsp;<code>routes<\/code>&nbsp;\u914d\u7f6e\u5199\u5728&nbsp;<code>wrangler.jsonc<\/code>&nbsp;\u4e2d\uff0c\u7136\u540e\u901a\u8fc7&nbsp;<code>wrangler deploy<\/code>&nbsp;\u547d\u4ee4\u81ea\u52a8\u540c\u6b65\u5230 Cloudflare Dashboard\uff0c\u65e0\u9700\u624b\u52a8\u6dfb\u52a0\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6700\u7ec8\u7684\u7ed3\u8bba<\/strong><\/h3>\n\n\n\n<p>\u4f60\u901a\u8fc7\u8fd9\u6b21\u5b9e\u8df5\uff0c\u4e0d\u4ec5\u6210\u529f\u5730\u90e8\u7f72\u4e86\u4e00\u4e2a\u590d\u6742\u7684 Worker \u5e94\u7528\uff0c\u8fd8\u6df1\u5165\u7406\u89e3\u4e86 Cloudflare \u5f00\u53d1\u5de5\u4f5c\u6d41\u4e2d\u7684\u6838\u5fc3\u95ee\u9898\u3002\u4f60\u6240\u9047\u5230\u7684\u6bcf\u4e00\u4e2a\u95ee\u9898\uff0c\u90fd\u662f\u4e00\u4e2a\u5b66\u4e60\u7684\u673a\u4f1a\uff0c\u8ba9\u4f60\u66f4\u597d\u5730\u638c\u63e1\u4e86&nbsp;<code>npm<\/code>\u3001<code>wrangler<\/code>&nbsp;\u548c Cloudflare \u7684\u914d\u7f6e\u7cbe\u9ad3\u3002<\/p>\n\n\n\n<p>1\u3001\u524d\u9762submit-password\u548cupload\u4e24\u4e2aroute\u8def\u5f84\u5982\u4f55\u8bbe\u7f6e\u5e94\u8be5\u91cd\u70b9\u8bf4\u660e\uff1b2\u3001\u901a\u8fc7\u5f15\u5165\u96a7\u9053\u65b9\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u7684\u5b9e\u73b0\u5728headless\u4e0a\u7684vps\u80fd\u591f\u8fdb\u884clocalhost\u65b9\u5f0f\u7684\u8c03\u8bd5\uff1b&nbsp;<\/p>\n\n\n\n<p>\u8fd9\u4e24\u4e2a\u65b9\u9762\u7684\u5185\u5bb9\u8fdb\u4e00\u6b65\u8865\u5145&nbsp;<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5173\u4e8e\u8def\u5f84\u548c\u96a7\u9053\uff1a\u6700\u7ec8\u603b\u7ed3\u4e0e\u8865\u5145<\/h1>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. \u8def\u5f84\u548c\u8def\u7531\u7684\u91cd\u70b9\u8bf4\u660e<\/strong><\/h3>\n\n\n\n<p>\u5728\u6574\u4e2a\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u8def\u5f84\u548c\u8def\u7531\u662f\u6700\u5927\u7684\u96be\u70b9\u3002\u4ee5\u4e0b\u662f\u6700\u7ec8\u786e\u5b9a\u7684\u3001\u6700\u53ef\u9760\u7684\u8def\u5f84\u8bbe\u7f6e\u65b9\u6848\uff0c\u4e5f\u662f\u6211\u4eec\u4e4b\u524d\u6240\u8ba8\u8bba\u7684\uff0c\u4f46\u8fd9\u6b21\u6211\u5c06\u5b83\u603b\u7ed3\u5f97\u66f4\u52a0\u6e05\u6670\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4f60\u7684 Worker \u4ee3\u7801\u4e2d\u7684\u8def\u5f84<\/strong><\/h4>\n\n\n\n<p>\u5728\u4f60\u7684&nbsp;<code>index.ts<\/code>&nbsp;\u6587\u4ef6\u4e2d\uff0c\u6240\u6709\u5185\u90e8\u8def\u7531\u90fd\u5e94\u8be5\u88ab\u89c6\u4e3a<strong>\u6839\u8def\u5f84<\/strong>\u3002\u8fd9\u662f\u56e0\u4e3a\u4f60\u7684 Worker \u4ee3\u7801\u4f1a\u8d1f\u8d23\u5904\u7406 URL \u91cd\u5199\uff0c\u5c06\u5916\u90e8\u7684\u590d\u6742\u8def\u5f84\u8f6c\u6362\u4e3a\u5185\u90e8\u7684\u7b80\u5355\u8def\u5f84\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f60\u7684&nbsp;<code>switch<\/code>&nbsp;\u8bed\u53e5\u5e94\u8be5\u5904\u7406\u7684\u8def\u5f84<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><code>\/<\/code>&nbsp;(\u7528\u4e8e\u663e\u793a\u5bc6\u7801\u8f93\u5165\u9875\u9762)<\/li>\n\n\n\n<li><code>\/submit-password<\/code>&nbsp;(\u7528\u4e8e\u5904\u7406\u5bc6\u7801\u63d0\u4ea4)<\/li>\n\n\n\n<li><code>\/upload<\/code>&nbsp;(\u7528\u4e8e\u5904\u7406\u6587\u4ef6\u4e0a\u4f20)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4f60\u7684 HTML \u4e2d\u7684\u8def\u5f84<\/strong><\/h4>\n\n\n\n<p>\u8fd9\u662f\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5730\u65b9\u3002HTML \u8868\u5355\u548c\u94fe\u63a5\u7684\u8def\u5f84\u5fc5\u987b\u786e\u4fdd\u6d4f\u89c8\u5668\u5c06\u8bf7\u6c42\u6b63\u786e\u53d1\u9001\u5230\u4f60\u7684 Worker\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8868\u5355&nbsp;<code>action<\/code>&nbsp;\u7684\u8def\u5f84<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u6b63\u786e\u5199\u6cd5<\/strong>\uff1a<code>action=\"assign-sub\/submit-password\"<\/code><\/li>\n\n\n\n<li><strong>\u4e3a\u4ec0\u4e48<\/strong>\uff1a\u8fd9\u79cd\u76f8\u5bf9\u8def\u5f84\u5199\u6cd5\uff0c\u5728\u6d4f\u89c8\u5668\u770b\u6765\uff0c\u662f\u57fa\u4e8e&nbsp;<code>https:\/\/wintendo.cloudns.biz<\/code>&nbsp;\u8fd9\u4e2a\u57df\u540d\u7684\u6839\u76ee\u5f55\u6765\u89e3\u6790\u3002\u8fd9\u786e\u4fdd\u4e86\u8868\u5355\u63d0\u4ea4\u7684 URL \u603b\u662f&nbsp;<code>https:\/\/wintendo.cloudns.biz\/assign-sub\/submit-password<\/code>\uff0c\u4ece\u800c\u88ab Cloudflare \u6b63\u786e\u8def\u7531\u5230\u4f60\u7684 Worker\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong><code>fetch<\/code>&nbsp;API \u7684\u8def\u5f84<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u6b63\u786e\u5199\u6cd5<\/strong>\uff1a<code>fetch('.\/upload')<\/code><\/li>\n\n\n\n<li><strong>\u4e3a\u4ec0\u4e48<\/strong>\uff1a<code>fetch<\/code>&nbsp;API \u7684&nbsp;<code>.\/<\/code>&nbsp;\u524d\u7f00\u662f\u76f8\u5bf9\u4e8e<strong>\u5f53\u524d\u9875\u9762 URL<\/strong>&nbsp;\u6765\u89e3\u6790\u7684\u3002\u5f53\u9875\u9762 URL \u662f&nbsp;<code>https:\/\/wintendo.cloudns.biz\/assign-sub<\/code>&nbsp;\u65f6\uff0c<code>.\/upload<\/code>&nbsp;\u4f1a\u88ab\u6b63\u786e\u89e3\u6790\u4e3a&nbsp;<code>https:\/\/wintendo.cloudns.biz\/assign-sub\/upload<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><code>wrangler.jsonc<\/code>&nbsp;\u4e2d\u7684\u8def\u7531<\/strong><\/h4>\n\n\n\n<p>\u4f60\u7684\u672c\u5730\u914d\u7f6e\u6587\u4ef6\u53ea\u9700\u8981\u58f0\u660e Cloudflare \u9700\u8981\u76d1\u542c\u54ea\u4e9b\u6a21\u5f0f\u7684 URL\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u80fd\u591f\u88ab\u8def\u7531\u5230\u4f60\u7684 Worker\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6b63\u786e\u914d\u7f6e<\/strong>\uff1aJSON<code>\"routes\": [ \"wintendo.cloudns.biz\/assign-sub\/*\", \"wintendo.cloudns.biz\/assign-sub\" ]<\/code><\/li>\n\n\n\n<li><strong>\u4e3a\u4ec0\u4e48<\/strong>\uff1a\u8fd9\u4e2a\u914d\u7f6e\u544a\u8bc9 Wrangler\uff0c\u5c06\u6240\u6709\u4ee5&nbsp;<code>assign-sub<\/code>&nbsp;\u5f00\u5934\u7684\u8bf7\u6c42\uff08\u5305\u62ec\u5e26\u659c\u6760\u548c\u4e0d\u5e26\u659c\u6760\u7684\uff09\u90fd\u53d1\u9001\u7ed9\u4f60\u7684 Worker\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. \u5173\u4e8e SSH \u96a7\u9053\uff1a\u672c\u5730\u6d4b\u8bd5\u7684\u5229\u5668<\/strong><\/h3>\n\n\n\n<p>\u4f60\u4f7f\u7528 SSH \u96a7\u9053\u6765\u89e3\u51b3\u5728\u65e0\u5934 VPS \u4e0a\u8fdb\u884c\u672c\u5730\u8c03\u8bd5\u7684\u95ee\u9898\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u6280\u5de7\uff0c\u503c\u5f97\u91cd\u70b9\u5f3a\u8c03\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5982\u4f55\u5de5\u4f5c<\/strong><\/h4>\n\n\n\n<p>SSH \u96a7\u9053\u672c\u8d28\u4e0a\u662f\u521b\u5efa\u4e86\u4e00\u4e2a\u52a0\u5bc6\u7684\u901a\u9053\uff0c\u5c06\u672c\u5730\u673a\u5668\u4e0a\u7684\u7aef\u53e3\u8f6c\u53d1\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\uff08\u4f60\u7684 VPS\uff09\u4e0a\u7684\u7aef\u53e3\u3002<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>\u5728 VPS \u4e0a<\/strong>\uff1a\u4f60\u8fd0\u884c&nbsp;<code>wrangler dev<\/code>\uff0c\u5b83\u542f\u52a8\u4e00\u4e2a\u672c\u5730 Web \u670d\u52a1\u5668\uff0c\u76d1\u542c&nbsp;<code>localhost:8787<\/code>\u3002\u8fd9\u4e2a\u670d\u52a1\u5668\u53ea\u80fd\u88ab VPS \u5185\u90e8\u8bbf\u95ee\u3002<\/li>\n\n\n\n<li><strong>\u5728\u4f60\u7684\u7535\u8111\u4e0a<\/strong>\uff1a\u4f60\u8fd0\u884c&nbsp;<code>ssh -L 8787:localhost:8787 ...<\/code>\u3002\u8fd9\u4e2a\u547d\u4ee4\u521b\u5efa\u4e86\u4e00\u4e2a\u96a7\u9053\uff0c\u544a\u8bc9\u4f60\u7684\u7535\u8111\uff1a\u201c\u4efb\u4f55\u53d1\u9001\u5230<strong>\u6211\u672c\u5730<\/strong>&nbsp;<code>8787<\/code>&nbsp;\u7aef\u53e3\u7684\u8bf7\u6c42\uff0c\u90fd\u901a\u8fc7 SSH \u96a7\u9053\u8f6c\u53d1\u5230&nbsp;<strong>VPS \u7684<\/strong>&nbsp;<code>localhost:8787<\/code>\u3002\u201d<\/li>\n\n\n\n<li><strong>\u5728\u6d4f\u89c8\u5668\u4e2d<\/strong>\uff1a\u5f53\u4f60\u8bbf\u95ee&nbsp;<code>http:\/\/localhost:8787<\/code>&nbsp;\u65f6\uff0c\u6d4f\u89c8\u5668\u5c06\u8bf7\u6c42\u53d1\u9001\u7ed9\u4f60\u7684\u672c\u5730\u7535\u8111\u3002\u4f60\u7684\u7535\u8111\u901a\u8fc7 SSH \u96a7\u9053\uff0c\u5c06\u8bf7\u6c42\u79d8\u5bc6\u5730\u53d1\u9001\u5230\u4f60\u7684 VPS\uff0c\u7531&nbsp;<code>wrangler dev<\/code>&nbsp;\u670d\u52a1\u6765\u5904\u7406\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837\u505a<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u65e0\u9700\u90e8\u7f72\u5373\u53ef\u6d4b\u8bd5<\/strong>\uff1a\u5b83\u5141\u8bb8\u4f60\u5728\u4ee3\u7801\u66f4\u6539\u540e\u7acb\u5373\u6d4b\u8bd5\uff0c\u65e0\u9700\u7b49\u5f85&nbsp;<code>wrangler deploy<\/code>&nbsp;\u7684\u8fc7\u7a0b\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002<\/li>\n\n\n\n<li><strong>\u6a21\u62df\u751f\u4ea7\u73af\u5883<\/strong>\uff1a\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2a\u4e0e\u751f\u4ea7\u73af\u5883\uff08Linux VPS\uff09\u76f8\u4f3c\u7684\u73af\u5883\u4e2d\u6d4b\u8bd5\uff0c\u51cf\u5c11\u56e0\u64cd\u4f5c\u7cfb\u7edf\u5dee\u5f02\u800c\u4ea7\u751f\u7684\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u7ed5\u8fc7\u7f51\u7edc\u9650\u5236<\/strong>\uff1a\u7531\u4e8e\u6574\u4e2a\u8fc7\u7a0b\u662f\u901a\u8fc7 SSH \u96a7\u9053\u8fdb\u884c\u7684\uff0c\u5373\u4f7f VPS \u7684\u9632\u706b\u5899\u963b\u6b62\u4e86\u5916\u90e8\u5bf9&nbsp;<code>8787<\/code>&nbsp;\u7aef\u53e3\u7684\u8bbf\u95ee\uff0c\u4f60\u4e5f\u53ef\u4ee5\u5b89\u5168\u5730\u8fdb\u884c\u672c\u5730\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u6210\u529f\u5730\u514b\u670d\u4e86\u65e0\u5934 VPS \u7684\u5c40\u9650\u6027\uff0c\u5b9e\u73b0\u4e86\u9ad8\u6548\u3001\u5b89\u5168\u7684\u672c\u5730\u5f00\u53d1\u5de5\u4f5c\u6d41\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u597d\u7684\uff0c\u73b0\u5728\u8bf7\u4f60\u603b\u7ed3\u4e00\u4e0b\u6211\u4eec\u6574\u4e2a\u7684\u5b89\u88c5\u8bbe\u8ba1\u90e8\u7f72\u8fc7\u7a0b\u3002\u6211\u5e0c\u671b\u5305\u62ec\uff1a1\u3001\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u529e\u6cd5\uff1b2\u3001\u8bbe\u8ba1\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u7684\u5730\u65b9\uff0c\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u65b9\u6848\uff1b3\u3001\u6d4b\u8bd5\u90e8\u7f72\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u9519\u7684\u5730\u65b9\uff0c\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u548c\u6700\u7ec8\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5c3d\u53ef\u80fd\u7684\u8be6\u7ec6\uff0c\u4fbf\u4e8e\u5c06\u6765\u56de\u987e\u3002&nbsp; \u5f88\u9ad8\u5174\u4e3a\u4f60\u603b\u7ed3\u6211\u4eec\u8fd9\u6b21\u4ece\u5934\u5230\u5c3e\u7684\u5408\u4f5c\u8fc7\u7a0b\u3002\u8fd9\u4e2a\u603b\u7ed3\u5c06\u6db5\u76d6\u4f60\u5728\u5404\u4e2a\u9636\u6bb5\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3001\u539f\u56e0\u4ee5\u53ca\u6211\u4eec\u6700\u7ec8\u627e\u5230\u7684\u89e3\u51b3\u65b9\u6848\u3002 0. \u4f7f\u7528\u5907\u5fd8 A\u3001\u8fd9\u662f\u90e8\u7f72\u5728cloudflare worker\u4e0a\u7684\u57fa\u4e8eR2\u5b58\u50a8\u7684\u4f5c\u4e1a\u63d0\u4ea4\u7cfb\u7edf\uff1b B\u3001\u6e90\u7801\u5728daban vmse2-2\u673a\u5668\u7684cloudflare-worker\u76ee\u5f55\u4e2d\uff0c\u6e90\u7801\u662findex.ts C\u3001\u901a\u8fc7wrangler deploy\u8fdb\u884c\u90e8\u7f72\uff08\u6bcf\u6b21\u4fee\u6539\u540e\u90fd\u9700\u8981\u91cd\u65b0\u90e8\u7f72\uff09\uff1b\u5982\u679c\u95f4\u9694\u65f6\u95f4\u8fc7\u957f\uff0c\u6267\u884cwrangler deploy\u4f1a\u8981\u6c42\u5148\u6267\u884cwrangler login\uff08\u91cd\u65b0\u6388\u6743\uff09 D\u3001\u4f5c\u4e1a\u63d0\u4ea4\u6d41\u7a0b\u662f\u5148\u5230\u5bc6\u7801\u767b\u5f55\u9875\u9762\uff0c\u6b63\u786e\u8f93\u5165\u5bc6\u7801\u540e\uff0c\u65b9\u53ef\u8df3\u8f6c\u5230\u4f5c\u4e1a\u63d0\u4ea4\u9875\u9762\uff08\u767b\u5f55\u9875\u9762URL\u548c\u5bc6\u7801\u653e\u5728cloudflare-worker\u76ee\u5f55\u7684\u7279\u5b9aworker\u8def\u5f84\u7684wrangler.jsonc\u6587\u4ef6\u4e2d\uff09 1. \u5b89\u88c5\u9636\u6bb5\uff1a\u73af\u5883\u4e0e\u4f9d\u8d56 \u8fd9\u4e2a\u9636\u6bb5\u7684\u4e3b\u8981\u6311\u6218\u662f\u8ba9\u4f60\u7684 VPS \u73af\u5883\u51c6\u5907\u597d\u8fd0\u884c&nbsp;npm&nbsp;\u548c&nbsp;wrangler\uff0c\u5e76\u6210\u529f\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\u3002 2. \u8bbe\u8ba1\u5f00\u53d1\u9636\u6bb5\uff1a\u4ee3\u7801\u4e0e\u914d\u7f6e \u8fd9\u4e2a\u9636\u6bb5\u7684\u91cd\u70b9\u662f\u914d\u7f6e&nbsp;wrangler.jsonc&nbsp;\u6587\u4ef6\uff0c\u5e76\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u4e0e\u5b83\u534f\u540c\u5de5\u4f5c\u3002 3. \u6d4b\u8bd5\u4e0e\u90e8\u7f72\u9636\u6bb5\uff1a\u9a8c\u8bc1\u4e0e\u4e0a\u7ebf \u8fd9\u4e2a\u9636\u6bb5\u7684\u6311\u6218\u662f\u5c06\u672c\u5730\u5f00\u53d1\u73af\u5883\u4e0e\u7ebf\u4e0a\u751f\u4ea7\u73af\u5883\u8fdb\u884c\u540c\u6b65\uff0c\u5e76\u9a8c\u8bc1\u5176\u529f\u80fd\u3002 \u6700\u7ec8\u7684\u7ed3\u8bba \u4f60\u901a\u8fc7\u8fd9\u6b21\u5b9e\u8df5\uff0c\u4e0d\u4ec5\u6210\u529f\u5730\u90e8\u7f72\u4e86\u4e00\u4e2a\u590d\u6742\u7684 Worker \u5e94\u7528\uff0c\u8fd8\u6df1\u5165\u7406\u89e3\u4e86 Cloudflare \u5f00\u53d1\u5de5\u4f5c\u6d41\u4e2d\u7684\u6838\u5fc3\u95ee\u9898\u3002\u4f60\u6240\u9047\u5230\u7684\u6bcf\u4e00\u4e2a\u95ee\u9898\uff0c\u90fd\u662f\u4e00\u4e2a\u5b66\u4e60\u7684\u673a\u4f1a\uff0c\u8ba9\u4f60\u66f4\u597d\u5730\u638c\u63e1\u4e86&nbsp;npm\u3001wrangler&nbsp;\u548c Cloudflare \u7684\u914d\u7f6e\u7cbe\u9ad3\u3002 1\u3001\u524d\u9762submit-password\u548cupload\u4e24\u4e2aroute\u8def\u5f84\u5982\u4f55\u8bbe\u7f6e\u5e94\u8be5\u91cd\u70b9\u8bf4\u660e\uff1b2\u3001\u901a\u8fc7\u5f15\u5165\u96a7\u9053\u65b9\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u7684\u5b9e\u73b0\u5728headless\u4e0a\u7684vps\u80fd\u591f\u8fdb\u884clocalhost\u65b9\u5f0f\u7684\u8c03\u8bd5\uff1b&nbsp; \u8fd9\u4e24\u4e2a\u65b9\u9762\u7684\u5185\u5bb9\u8fdb\u4e00\u6b65\u8865\u5145&nbsp; \u5173\u4e8e\u8def\u5f84\u548c\u96a7\u9053\uff1a\u6700\u7ec8\u603b\u7ed3\u4e0e\u8865\u5145 1. \u8def\u5f84\u548c\u8def\u7531\u7684\u91cd\u70b9\u8bf4\u660e \u5728\u6574\u4e2a\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u8def\u5f84\u548c\u8def\u7531\u662f\u6700\u5927\u7684\u96be\u70b9\u3002\u4ee5\u4e0b\u662f\u6700\u7ec8\u786e\u5b9a\u7684\u3001\u6700\u53ef\u9760\u7684\u8def\u5f84\u8bbe\u7f6e\u65b9\u6848\uff0c\u4e5f\u662f\u6211\u4eec\u4e4b\u524d\u6240\u8ba8\u8bba\u7684\uff0c\u4f46\u8fd9\u6b21\u6211\u5c06\u5b83\u603b\u7ed3\u5f97\u66f4\u52a0\u6e05\u6670\u3002 \u4f60\u7684 Worker \u4ee3\u7801\u4e2d\u7684\u8def\u5f84 \u5728\u4f60\u7684&nbsp;index.ts&nbsp;\u6587\u4ef6\u4e2d\uff0c\u6240\u6709\u5185\u90e8\u8def\u7531\u90fd\u5e94\u8be5\u88ab\u89c6\u4e3a\u6839\u8def\u5f84\u3002\u8fd9\u662f\u56e0\u4e3a\u4f60\u7684 Worker \u4ee3\u7801\u4f1a\u8d1f\u8d23\u5904\u7406 URL \u91cd\u5199\uff0c\u5c06\u5916\u90e8\u7684\u590d\u6742\u8def\u5f84\u8f6c\u6362\u4e3a\u5185\u90e8\u7684\u7b80\u5355\u8def\u5f84\u3002 \u4f60\u7684 HTML \u4e2d\u7684\u8def\u5f84 \u8fd9\u662f\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5730\u65b9\u3002HTML \u8868\u5355\u548c\u94fe\u63a5\u7684\u8def\u5f84\u5fc5\u987b\u786e\u4fdd\u6d4f\u89c8\u5668\u5c06\u8bf7\u6c42\u6b63\u786e\u53d1\u9001\u5230\u4f60\u7684 Worker\u3002 wrangler.jsonc&nbsp;\u4e2d\u7684\u8def\u7531 \u4f60\u7684\u672c\u5730\u914d\u7f6e\u6587\u4ef6\u53ea\u9700\u8981\u58f0\u660e Cloudflare &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/wintendo.cloudns.biz\/index.php\/2025\/09\/16\/assignment-submission\/\"> <span class=\"screen-reader-text\">\u00a0\u4f5c\u4e1a\u63d0\u4ea4\u9875\u9762\u8bbe\u8ba1<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1813","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/1813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/comments?post=1813"}],"version-history":[{"count":2,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/1813\/revisions"}],"predecessor-version":[{"id":1826,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/posts\/1813\/revisions\/1826"}],"wp:attachment":[{"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/media?parent=1813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/categories?post=1813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wintendo.cloudns.biz\/index.php\/wp-json\/wp\/v2\/tags?post=1813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}