{"id":109,"date":"2026-07-28T10:00:24","date_gmt":"2026-07-28T02:00:24","guid":{"rendered":"https:\/\/www.deartester.com\/index.php\/2026\/07\/28\/%e6%b5%8f%e8%a7%88%e7%bd%91%e9%a1%b5%e5%b0%b1%e8%83%bd%e5%ae%9e%e7%8e%b0%e6%8e%a5%e5%8f%a3%e8%87%aa%e5%8a%a8%e5%8c%96%e6%95%b0%e6%8d%ae%e8%8e%b7%e5%8f%96%ef%bc%9f%e7%94%a8%e5%9b%bd%e4%ba%a7%e5%85%8d\/"},"modified":"2026-09-03T23:17:30","modified_gmt":"2026-09-03T15:17:30","slug":"%e6%b5%8f%e8%a7%88%e7%bd%91%e9%a1%b5%e5%b0%b1%e8%83%bd%e5%ae%9e%e7%8e%b0%e6%8e%a5%e5%8f%a3%e8%87%aa%e5%8a%a8%e5%8c%96%e6%95%b0%e6%8d%ae%e8%8e%b7%e5%8f%96%ef%bc%9f%e7%94%a8%e5%9b%bd%e4%ba%a7%e5%85%8d","status":"publish","type":"post","link":"https:\/\/www.deartester.com\/index.php\/2026\/07\/28\/%e6%b5%8f%e8%a7%88%e7%bd%91%e9%a1%b5%e5%b0%b1%e8%83%bd%e5%ae%9e%e7%8e%b0%e6%8e%a5%e5%8f%a3%e8%87%aa%e5%8a%a8%e5%8c%96%e6%95%b0%e6%8d%ae%e8%8e%b7%e5%8f%96%ef%bc%9f%e7%94%a8%e5%9b%bd%e4%ba%a7%e5%85%8d\/","title":{"rendered":"\u6d4f\u89c8\u7f51\u9875\u5c31\u80fd\u5b9e\u73b0\u63a5\u53e3\u81ea\u52a8\u5316\u6570\u636e\u83b7\u53d6\uff1f\u7528\u56fd\u4ea7\u514d\u8d39AI\u65b9\u6848+Postman Interceptor\u96f6\u57fa\u7840\u4e5f\u80fd\u642d\u5efa\u63a5\u53e3\u6d4b\u8bd5\u5e73\u53f0"},"content":{"rendered":"<p style=\"box-sizing: border-box;margin: 16px 0px;padding: 0px 0px 0px 14px;color: rgb(75, 85, 99);font-size: 16px;border-left: 3px solid rgb(209, 213, 219);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><span textstyle=\"\" style=\"font-style: normal;\">\u5c0f\u674e\u662f\u67d0\u7535\u5546\u516c\u53f8\u7684<\/span><span textstyle=\"\" style=\"color: rgb(123, 12, 0);font-weight: bold;font-style: normal;\">\u8fd0\u8425<\/span><span textstyle=\"\" style=\"font-style: normal;\">\uff0c\u6709\u4e00\u5929\u4ea7\u54c1\u7ecf\u7406\u627e\u5230\u4ed6\uff1a&#8221;\u540e\u53f0\u6539\u7248\u4e86\uff0c\u4f60\u8d1f\u8d23\u8dd1\u4e00\u904d\u6838\u5fc3\u6d41\u7a0b\u56de\u5f52\u6d4b\u8bd5\uff0c\u4e0b\u5468\u4e00\u7ed9\u6211\u7ed3\u679c\u3002&#8221;<\/span><\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5c0f\u674e\u6253\u5f00\u540e\u53f0\u9875\u9762\uff0c\u628a\u4e0b\u5355\u3001\u9000\u6b3e\u3001\u53d1\u8d27\u7684\u6d41\u7a0b\u70b9\u4e86\u4e00\u904d\uff0c\u5fc3\u60f3&#8221;\u5e94\u8be5\u6ca1\u95ee\u9898\u5427&#8221;\u3002\u7ed3\u679c\u4e0a\u7ebf\u7b2c\u4e09\u5929\uff0c\u652f\u4ed8\u63a5\u53e3\u62a5\u9519\u4e86 200 \u591a\u4e2a\u8ba2\u5355\u2014\u2014\u540e\u53f0\u6539\u7248\u65f6\u6709\u4eba\u6084\u6084\u6539\u4e86\u63a5\u53e3\u53c2\u6570\uff0c\u4f46\u6ca1\u6709\u4eba\u77e5\u9053\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u662f\u4f20\u7edf\u65b9\u5f0f\u7684\u56f0\u5883\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(255, 41, 65);\">\u4eba\u5de5\u70b9\u70b9\u70b9\uff0c\u53ea\u80fd\u6d4b\u754c\u9762\uff0c\u6d4b\u4e0d\u4e86\u63a5\u53e3<\/span>\u3002<\/span><\/strong><span leaf=\"\">\u63a5\u53e3\u662f\u7a0b\u5e8f\u548c\u7a0b\u5e8f\u4e4b\u95f4\u7684\u5bf9\u8bdd\uff0c\u770b\u4e0d\u89c1\u6478\u4e0d\u7740\uff0c\u9875\u9762\u6b63\u5e38\u4e0d\u4ee3\u8868\u63a5\u53e3\u6b63\u5e38\u3002\u800c\u4e14\uff0c\u4f20\u7edf\u63a5\u53e3\u6d4b\u8bd5\u9700\u8981\u61c2HTTP\u534f\u8bae\u3001\u4f1a\u5199\u65ad\u8a00\u8bed\u53e5\u2014\u2014\u8fd9\u5bf9\u8fd0\u8425\u3001\u4ea7\u54c1\u751a\u81f3\u90e8\u5206\u5f00\u53d1\u6765\u8bf4\uff0c\u95e8\u69db\u90fd\u4e0d\u4f4e\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: center;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);\">\u4f46\u4eca\u5e74\u4e0d\u4e00\u6837\u4e86\uff01<\/span><\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4f60\u53ea\u9700\u8981\u505a\u4e00\u4ef6\u4e8b\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);\">\u5728\u7f51\u9875\u4e0a\u50cf\u666e\u901a\u7528\u6237\u4e00\u6837\u7528\u4e00\u904d\u4ea7\u54c1<\/span>\u3002<\/span><\/strong><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 82, 255);text-decoration: underline;\">\u6d4f\u89c8\u5668\u63d2\u4ef6\u4f1a\u628a\u4f60\u53d1\u51fa\u7684\u8bf7\u6c42\u5168\u90e8\u8bb0\u5f55\u4e0b\u6765\uff0c\u7136\u540e\u4ea4\u7ed9AI\u2014\u2014AI\u4f1a\u628a\u8fd9\u4e9b\u539f\u59cb\u6d41\u91cf\u5206\u6790\u4e00\u904d\uff0c\u751f\u6210\u4e00\u4efd\u6807\u51c6\u683c\u5f0f\u7684\u63a5\u53e3\u6587\u6863\uff1b\u4f60\u518d\u628a\u6587\u6863\u5582\u7ed9\u6d4b\u8bd5\u5e73\u53f0\uff0c\u5e73\u53f0\u81ea\u52a8\u8dd1\u4e00\u904d\u6d4b\u8bd5\uff0c\u751f\u6210\u62a5\u544a\u3002<\/span><\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);\">\u6574\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u4e0d\u9700\u8981\u5199\u4e00\u884c\u4ee3\u7801\uff0c\u4e0d\u9700\u8981\u61c2HTTP\u534f\u8bae\uff0c\u53ea\u9700\u8981\u4f1a\u7528\u9f20\u6807\u70b9\u7f51\u9875\u3002<\/span><\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udca1<\/span><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(171, 25, 66);text-decoration: underline;\">\u4ee5\u4e0b\u6587\u7ae0\u5305\u542b<\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(171, 25, 66);text-decoration: underline;\">\u4ece\u6d4f\u89c8\u5668\u63d2\u4ef6\u5b89\u88c5\uff0c\u5230AI\u751f\u6210Swagger\u6587\u6863\uff0c\u518d\u5230AI\u5e2e\u4f60\u642d\u5efaWeb\u6d4b\u8bd5\u5e73\u53f0\uff0c\u6700\u540e\u8dd1\u51fa\u4e13\u4e1a\u62a5\u544a\u7684\u6240\u6709\u8be6\u7ec6\u64cd\u4f5c\u3002<\/span><\/span><\/span><\/p>\n<p style=\"text-align: right;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(255, 41, 65);font-weight: bold;\">\u6587\u4e2d\u6d89\u53ca\u7684AI\u7ea6\u675f\u90fd\u9644\u6709\u5b8c\u6574skill<\/span><\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p data-pm-slice=\"0 0 []\"><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(16, 185, 129);border-radius: 20px;letter-spacing: 0.5px;\"><span leaf=\"\">\u7b2c\u4e00\u7ae0<\/span><\/span><span leaf=\"\">&nbsp;<\/span><\/p>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;\"><span leaf=\"\">\u6ca1\u6709\u4ee3\u7801\u57fa\u7840\u7684\u4eba\u662f\u5426\u80fd\u505a\u63a5\u53e3\u6d4b\u8bd5<\/span><\/h2>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">1.1 \u4f20\u7edf\u63a5\u53e3\u6d4b\u8bd5\u7684\u4e09\u5ea7\u5927\u5c71<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u666e\u901a\u4eba\u60f3\u505a\u63a5\u53e3\u6d4b\u8bd5\uff0c\u901a\u5e38\u5361\u5728\u8fd9\u4e09\u4ef6\u4e8b\u4e0a\uff1a<\/span><\/p>\n<table style=\"box-sizing: border-box;margin: 16px 0px;padding: 0px;width: 860px;border-collapse: collapse;font-size: 14px;border-radius: 10px;overflow: hidden;box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 4px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\">\n<thead>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u95e8\u69db<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u5177\u4f53\u5185\u5bb9<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u4e3a\u4ec0\u4e48\u96be\u4f4f\u5c0f\u767d<\/span><\/span><\/section>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u61c2HTTP\u534f\u8bae<\/span><\/strong><\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">GET\/POST\/PUT\/DELETE\u3001Header\u3001Body\u3001\u72b6\u6001\u7801<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u6982\u5ff5\u62bd\u8c61\uff0c\u6ca1\u6709\u5b9e\u9645\u611f\u77e5<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5199\u63a5\u53e3\u6587\u6863<\/span><\/strong><\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u628a\u63a5\u53e3\u5b9a\u4e49\u6574\u7406\u6210\u89c4\u8303\u683c\u5f0f\uff08\u53c2\u6570\u3001\u7c7b\u578b\u3001\u8bf4\u660e\uff09<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u9700\u8981\u6280\u672f\u5199\u4f5c\u80fd\u529b\uff0c\u5bb9\u6613\u9057\u6f0f\u5b57\u6bb5<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5199\u65ad\u8a00\u903b\u8f91<\/span><\/strong><\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u5224\u65ad&#8221;\u63a5\u53e3\u8fd4\u56de\u662f\u4e0d\u662f\u5bf9\u7684&#8221;\uff08status==200\u3001token\u5b58\u5728\u7b49\uff09<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u9700\u8981\u7f16\u7a0b\u601d\u7ef4\uff0c\u4e0d\u77e5\u9053\u6d4b\u4ec0\u4e48\u7b97&#8221;\u5bf9&#8221;<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u4e09\u4ef6\u4e8b\uff0c\u6bcf\u4e00\u4ef6\u90fd\u9700\u8981\u4e13\u4e1a\u79ef\u7d2f\u3002\u5982\u679c\u4e00\u4e2a\u4eba\u4ece\u6765\u6ca1\u6709\u63a5\u89e6\u8fc7\u540e\u7aef\u5f00\u53d1\uff0c\u8ba9\u4ed6\u76f4\u63a5\u53bb\u5199\u63a5\u53e3\u6d4b\u8bd5\u811a\u672c\uff0c\u5927\u6982\u7387\u4f1a\u5361\u5728&#8221;\u6211\u8be5\u6d4b\u4ec0\u4e48\u3001\u600e\u4e48\u5199&#8221;\u8fd9\u4e24\u4ef6\u4e8b\u4e0a\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">1.2 AI\u5982\u4f55\u62c6\u6389\u8fd9\u4e09\u5ea7\u5927\u5c71<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">AI\u4e0d\u662f\u66ff\u4ee3\u6d4b\u8bd5\uff0c\u800c\u662f\u628a&#8221;\u4e13\u4e1a\u77e5\u8bc6&#8221;\u5c01\u88c5\u8fdb\u5de5\u5177\u91cc\uff0c\u8ba9\u5c0f\u767d\u4e5f\u80fd\u8c03\u7528\uff1a<\/span><\/p>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u539f\u6765\u8981\u61c2HTTP \u2192 \u73b0\u5728\u53ea\u9700\u8981&#8221;\u70b9\u4e00\u904d\u7f51\u9875&#8221;<\/span><\/strong><br \/>\n<section><span leaf=\"\"><br  \/><\/span><\/p>\n<section><span leaf=\"\">Postman Interceptor\u63d2\u4ef6\u4f1a\u81ea\u52a8\u6355\u83b7\u6d4f\u89c8\u5668\u53d1\u51fa\u7684\u6240\u6709HTTP\u8bf7\u6c42\uff0c\u4e0d\u9700\u8981\u4f60\u77e5\u9053\u4ec0\u4e48\u662fGET\u8fd8\u662fPOST\u3002<\/span><\/section>\n<\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u539f\u6765\u8981\u5199\u63a5\u53e3\u6587\u6863 \u2192 \u73b0\u5728\u53ea\u9700\u8981&#8221;\u628a\u6587\u4ef6\u4e22\u7ed9AI&#8221;<\/span><\/strong><br \/>\n<section><span leaf=\"\"><br  \/><\/span><\/p>\n<section><span leaf=\"\">AI\u6839\u636e\u6355\u83b7\u5230\u7684\u771f\u5b9e\u8bf7\u6c42\uff0c\u81ea\u52a8\u63a8\u65ad\u51fa\u6bcf\u4e2a\u63a5\u53e3\u7684URL\u3001\u65b9\u6cd5\u3001\u53c2\u6570\u683c\u5f0f\u3001\u54cd\u5e94\u7ed3\u6784\uff0c\u751f\u6210\u6807\u51c6\u7684Swagger\u6587\u6863\u3002\u4f60\u53ea\u9700\u8981\u7ea6\u5b9a\u597d&#8221;\u8f93\u51fa\u683c\u5f0f&#8221;\uff0cAI\u8d1f\u8d23\u586b\u5145\u5185\u5bb9\u3002<\/span><\/section>\n<\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u539f\u6765\u8981\u5199\u65ad\u8a00\u903b\u8f91 \u2192 \u73b0\u5728\u53ea\u9700\u8981&#8221;\u5728\u6587\u6863\u91cc\u6807\u671f\u671b\u503c&#8221;<\/span><\/strong><br \/>\n<section><span leaf=\"\"><br  \/><\/span><\/p>\n<section><span leaf=\"\">\u5e73\u53f0\u8bfb\u53d6Swagger\u6587\u6863\u65f6\uff0c\u53ef\u4ee5\u4ece\u6587\u6863\u6ce8\u91ca\u4e2d\u63d0\u53d6\u671f\u671b\u72b6\u6001\u7801\u548c\u5173\u952e\u5b57\u6bb5\uff0c\u76f4\u63a5\u4f5c\u4e3a\u65ad\u8a00\u4f9d\u636e\uff0c\u4e0d\u9700\u8981\u5199\u4ee3\u7801\u3002<\/span><\/section>\n<\/section>\n<\/li>\n<\/ul>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83e\udde0<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u6838\u5fc3\u601d\u8def\uff1a<\/span><span textstyle=\"\" style=\"font-size: 15px;\">\u628a&#8221;\u4e13\u4e1a\u77e5\u8bc6&#8221;\u53d8\u6210&#8221;\u6587\u6863\u683c\u5f0f&#8221;\uff0c\u628a&#8221;\u6587\u6863\u683c\u5f0f&#8221;\u53d8\u6210&#8221;\u5e73\u53f0\u8f93\u5165&#8221;\u3002<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u4eba\u53ea\u9700\u8981\u63d0\u4f9b\u771f\u5b9e\u6d41\u91cf\uff0cAI\u8d1f\u8d23\u7ffb\u8bd1\uff0c\u4e13\u4e1a\u5de5\u5177\u8d1f\u8d23\u6267\u884c\u3002<\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<section><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(124, 58, 237);border-radius: 20px;letter-spacing: 0.5px;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u7b2c\u4e8c\u7ae0<\/span><\/span><span style=\"color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;\"><span leaf=\"\">&nbsp;<\/span><\/span><\/section>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u6574\u4f53\u65b9\u6848\uff1a\u56db\u6b65\u95ed\u73af\u67b6\u6784<\/span><\/h2>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\"><br  \/><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-weight: bold;\">\u96f6\u57fa\u7840\u63a5\u53e3\u6d4b\u8bd5\uff1a\u56db\u6b65\u95ed\u73af\u65b9\u6848<\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.437984496124031\" data-s=\"300,640\" data-type=\"png\" data-w=\"774\" type=\"block\" data-imgfileid=\"100000546\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/BWmfcibGhS1I8H1tcPfGdibpU55wNUMhpQBUe2OhhfjLgSmDUCCaQ7M69WwFLjIfIhmqU0CpWX5iagVSuxFtaHVTCxSw90B6QKwibcicqxv7Kafc\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u56db\u6b65\u95ed\u73af \uff1a \u4f60\u53ea\u505a\u7b2c\u2460\u6b65\uff0c\u5176\u4f59\u4ea4\u7ed9AI<\/span><\/span><\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: center;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(2, 30, 170);font-weight: bold;\">\u6574\u6761\u94fe\u8def\u5206\u4e3a\u56db\u4e2a\u8282\u70b9\uff0c\u6bcf\u4e00\u73af\u90fd\u6709\u660e\u786e\u804c\u8d23\uff1a<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u2460 \u6355\u83b7\uff08\u4eba\u505a\uff09<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5728Chrome\u6d4f\u89c8\u5668\u91cc\u5b89\u88c5Postman Interceptor\u63d2\u4ef6\uff0c\u6253\u5f00\u6355\u83b7\u5f00\u5173\uff0c\u7136\u540e\u5728\u4e1a\u52a1\u9875\u9762\u8d70\u4e00\u904d\u4f60\u60f3\u6d4b\u8bd5\u7684\u6d41\u7a0b\uff08\u767b\u5f55\u3001\u4e0b\u5355\u3001\u67e5\u8be2\u2026\u2026\uff09\u3002\u63d2\u4ef6\u4f1a\u628a\u6240\u6709HTTP\u8bf7\u6c42\u548c\u54cd\u5e94\u8bb0\u5f55\u4e0b\u6765\uff0c\u5bfc\u51fa\u4e3aHAR\u6216JSON\u6587\u4ef6\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u2461 \u5206\u6790\uff08AI\u505a\uff09<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u628a\u5bfc\u51fa\u7684\u6587\u4ef6\u53d1\u7ed9AI\uff0c\u540c\u65f6\u7ed9AI\u4e00\u4e2a&#8221;Skill&#8221;\u2014\u2014\u544a\u8bc9\u5b83&#8221;\u4f60\u662f\u4e00\u4e2aSwagger\u6587\u6863\u751f\u6210\u4e13\u5bb6\uff0c\u53ea\u80fd\u6309OpenAPI 3.0\u683c\u5f0f\u8f93\u51fa&#8221;\u3002AI\u4ece\u6742\u4e71\u7684\u539f\u59cb\u6d41\u91cf\u4e2d\u63d0\u53d6\u6709\u6548\u4fe1\u606f\uff0c\u751f\u6210\u7ed3\u6784\u5316\u7684Swagger\u6587\u6863\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u2462 \u6d4b\u8bd5\uff08\u5e73\u53f0\u505a\uff09<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u628aAI\u751f\u6210\u7684Swagger\u6587\u6863\u4e0a\u4f20\u5230\u8f7b\u91cfWeb\u6d4b\u8bd5\u5e73\u53f0\uff0c\u5e73\u53f0\u8bfb\u53d6\u6587\u6863\u3001\u89e3\u6790\u63a5\u53e3\u5217\u8868\u3001\u81ea\u52a8\u53d1\u9001\u8bf7\u6c42\u3001\u6bd4\u5bf9\u671f\u671b\u503c\u3001\u6c47\u603b\u7ed3\u679c\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u2463 \u62a5\u544a\uff08\u5e73\u53f0\u751f\u6210\uff09<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5e73\u53f0\u8f93\u51faHTML\u62a5\u544a\uff0c\u5305\u542b\u6bcf\u4e2a\u63a5\u53e3\u7684\u901a\u8fc7\/\u5931\u8d25\u72b6\u6001\u3001\u54cd\u5e94\u65f6\u95f4\u3001\u65ad\u8a00\u7ed3\u679c\u3001\u5931\u8d25\u539f\u56e0\u3002\u5c0f\u767d\u4e5f\u80fd\u770b\u61c2\u3002<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<p data-pm-slice=\"3 2 []\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udd04<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u95ed\u73af\u903b\u8f91\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u63a5\u53e3\u53d8\u4e86\uff1f\u91cd\u65b0\u5728\u7f51\u9875\u4e0a\u8d70\u4e00\u904d \u2192 \u91cd\u65b0\u5bfc\u51fa \u2192 \u91cd\u65b0\u8ba9AI\u751f\u6210\u6587\u6863 \u2192 \u91cd\u65b0\u8dd1\u6d4b\u8bd5\u3002\u51e0\u5206\u949f\u5b8c\u6210\u4e00\u6b21\u5b8c\u6574\u56de\u5f52\uff0c\u4e0d\u9700\u8981\u91cd\u65b0\u5b66\u4efb\u4f55\u4e1c\u897f\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p data-pm-slice=\"0 0 []\"><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(3, 105, 161);border-radius: 20px;letter-spacing: 0.5px;\"><span leaf=\"\">\u7b2c\u4e09\u7ae0<\/span><\/span><span leaf=\"\">&nbsp;<\/span><\/p>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;\"><span leaf=\"\">Step 1\uff1a\u7528Postman Interceptor\u6355\u83b7\u63a5\u53e3<\/span><\/h2>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">3.1 \u4ec0\u4e48\u662fPostman Interceptor<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">Postman Interceptor\u662fPostman\u51fa\u54c1\u7684Chrome\u63d2\u4ef6\uff0c\u5b83\u7684\u4f5c\u7528\u662f\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(64, 118, 0);\">\u62e6\u622a\u6d4f\u89c8\u5668\u53d1\u51fa\u7684\u6240\u6709HTTP\u8bf7\u6c42\uff0c\u8ba9\u4f60\u770b\u5230&#8221;\u7f51\u9875\u80cc\u540e\u5728\u548c\u670d\u52a1\u5668\u8bf4\u4ec0\u4e48&#8221;<\/span>\u3002<\/span><\/strong><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5f53\u4f60\u6253\u5f00\u4e00\u4e2a\u7535\u5546\u540e\u53f0\u3001\u70b9\u4e00\u6b21\u641c\u7d22\u3001\u63d0\u4ea4\u4e00\u4e2a\u8ba2\u5355\u2014\u2014\u8868\u9762\u4e0a\u662f\u9875\u9762\u4e0a\u70b9\u4e86\u51e0\u4e0b\uff0c\u80cc\u540e\u5176\u5b9e\u662f\u6d4f\u89c8\u5668\u5411\u670d\u52a1\u5668\u53d1\u9001\u4e86\u4e00\u5806HTTP\u8bf7\u6c42\u3002Interceptor\u80fd\u628a\u8fd9\u5806\u8bf7\u6c42\u5168\u90e8\u6293\u4e0b\u6765\uff0c\u4e00\u89c8\u65e0\u4f59\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">Postman Interceptor\u6355\u83b7\u754c\u9762<\/span><\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.43796296296296294\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000547\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/BWmfcibGhS1KuaZNfsjiclWQ9ECeI5fbfK0Q0TDwz7Awm8QEqNYJDyH6sPqUvnFQianh89lU50RlVteiaw9erOA93zC8xLKGhHibwjMbibiagHx7M8\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">Postman Interceptor \uff1a\u5f00\u542f\u6355\u83b7\u540e\u5b9e\u65f6\u663e\u793a\u8bf7\u6c42\u5217\u8868<\/span><\/span><\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">3.2 \u5b89\u88c5\u4e0e\u914d\u7f6e<\/span><\/h3>\n<ol style=\"box-sizing: border-box;margin: 10px 0px 14px;padding: 0px;counter-reset: step-counter 0;list-style: none;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">1.&nbsp;<\/span>\u6253\u5f00Chrome\u6d4f\u89c8\u5668\uff0c\u8bbf\u95eeChrome\u5e94\u7528\u5546\u5e97\uff0c\u641c\u7d22&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Postman Interceptor&#8221;<\/span><\/strong><span leaf=\"\">\uff08\u7531Postman\u5b98\u65b9\u63d0\u4f9b\uff09\uff0c\u70b9\u51fb&#8221;\u6dfb\u52a0\u81f3Chrome&#8221;\u5b89\u88c5\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">2.&nbsp;<\/span><\/span><span leaf=\"\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728Chrome\u53f3\u4e0a\u89d2\u627e\u5230\u63d2\u4ef6\u56fe\u6807\uff08\u4e00\u4e2a\ud83d\udcee\u5f62\u72b6\u7684\u5c0f\u56fe\u6807\uff09\uff0c\u70b9\u51fb\u6253\u5f00Interceptor\u9762\u677f\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">3.&nbsp;<\/span><\/span><span leaf=\"\">\u5728Interceptor\u9762\u677f\u4e2d\uff0c\u5c06&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Capture requests&#8221;<\/span><\/strong><span leaf=\"\">&nbsp;\u5f00\u5173\u6253\u5f00\uff08\u53d8\u6210\u7eff\u8272ON\u72b6\u6001\uff09\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">4.&nbsp;<\/span><\/span><span leaf=\"\">\u5728&#8221;Filters&#8221;\uff08\u8fc7\u6ee4\uff09\u533a\u57df\uff0c\u53ef\u4ee5\u586b\u5165\u8981\u6355\u83b7\u7684\u57df\u540d\uff0c\u4f8b\u5982&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api.example.com<\/span><\/code><span leaf=\"\">\uff0c\u53ea\u6355\u83b7\u8be5\u57df\u540d\u4e0b\u7684\u8bf7\u6c42\uff0c\u907f\u514d\u65e0\u5173\u6d41\u91cf\u5e72\u6270\u3002\u5982\u679c\u7559\u7a7a\uff0c\u5219\u6355\u83b7\u6240\u6709\u8bf7\u6c42\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udca1<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u8fdb\u9636\u6280\u5de7\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u5982\u679c\u53ea\u60f3\u6d4b\u8bd5\u67d0\u4e2a\u7279\u5b9a\u529f\u80fd\uff08\u6bd4\u5982&#8221;\u4e0b\u5355\u6d41\u7a0b&#8221;\uff09\uff0c\u53ef\u4ee5\u5728\u8d70\u6d41\u7a0b\u4e4b\u524d\u5148\u6e05\u7a7a\u6355\u83b7\u5217\u8868\uff0c\u8d70\u5b8c\u6d41\u7a0b\u540e\u518d\u505c\u6b62\u6355\u83b7\uff0c\u8fd9\u6837\u5bfc\u51fa\u7684\u6587\u4ef6\u6700\u5e72\u51c0\uff0c\u4e0d\u9700\u8981\u540e\u671f\u624b\u52a8\u8fc7\u6ee4\u3002<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">3.3 \u6355\u83b7\u771f\u5b9e\u4e1a\u52a1\u6d41\u91cf<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4ee5\u4e00\u4e2a\u5178\u578b\u7684&#8221;\u7528\u6237\u767b\u5f55+\u67e5\u8be2\u8ba2\u5355&#8221;\u573a\u666f\u4e3a\u4f8b\uff1a<\/span><\/p>\n<ol style=\"box-sizing: border-box;margin: 10px 0px 14px;padding: 0px;counter-reset: step-counter 0;list-style: none;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">1.&nbsp;<\/span>\u5728Chrome\u6253\u5f00\u4e1a\u52a1\u7cfb\u7edf\u767b\u5f55\u9875\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">2.<\/span><\/span><span leaf=\"\">&nbsp;\u786e\u8ba4Interceptor\u5df2\u5f00\u542f\u6355\u83b7\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">3.<\/span><\/span><span leaf=\"\">&nbsp;\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u70b9\u51fb\u767b\u5f55\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">4.&nbsp;<\/span><\/span><span leaf=\"\">\u8fdb\u5165\u8ba2\u5355\u5217\u8868\u9875\u9762\uff0c\u67e5\u770b\u8ba2\u5355\u6570\u636e\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">5.&nbsp;<\/span><\/span><span leaf=\"\">\u5b8c\u6210\u64cd\u4f5c\u540e\uff0c\u5173\u95edInterceptor\u6355\u83b7\u5f00\u5173\uff08\u907f\u514d\u540e\u7eed\u65e0\u5173\u6ce8\u5165\uff09\uff1b<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u6574\u4e2a\u8fc7\u7a0b\u4e2d\uff0cInterceptor\u8bb0\u5f55\u4e86\uff1a\u767b\u5f55\u63a5\u53e3\uff08POST \/api\/login\uff0c\u53c2\u6570user\/pwd\uff0c\u8fd4\u56detoken\uff09\u3001\u67e5\u8be2\u63a5\u53e3\uff08GET \/api\/orders\uff0c\u8fd4\u56de\u8ba2\u5355\u5217\u8868\uff09\u7b49\u6240\u6709\u8bf7\u6c42\u548c\u54cd\u5e94\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">3.4 \u5bfc\u51faHAR\u6587\u4ef6<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5bfc\u51fa\u6b65\u9aa4\uff1a<\/span><\/p>\n<ol style=\"box-sizing: border-box;margin: 10px 0px 14px;padding: 0px;counter-reset: step-counter 0;list-style: none;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">1.&nbsp;<\/span>\u6253\u5f00Chrome\u7684Postman\u684c\u9762\u5ba2\u6237\u7aef\uff08\u6216\u76f4\u63a5\u7528Postman App\uff09\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">2.&nbsp;<\/span><\/span><span leaf=\"\">\u5728Postman\u5de6\u4fa7\u8fb9\u680f\u627e\u5230&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Collections&#8221;<\/span><\/strong><span leaf=\"\">&nbsp;\u6216&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;History&#8221;<\/span><\/strong><span leaf=\"\">\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Sync&#8221;<\/span><\/strong><span leaf=\"\">&nbsp;\u6309\u94ae\uff0c\u9009\u62e9&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Import from Interceptor&#8221;<\/span><\/strong><span leaf=\"\">\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">3.&nbsp;<\/span><\/span><span leaf=\"\">\u4eceInterceptor\u540c\u6b65\u8fc7\u6765\u7684\u8bf7\u6c42\u4f1a\u51fa\u73b0\u5728History\u5217\u8868\u4e2d\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">4.&nbsp;<\/span><\/span><span leaf=\"\">\u9009\u4e2d\u9700\u8981\u5bfc\u51fa\u7684\u8bf7\u6c42\uff0c\u53f3\u952e \u2192&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;Export&#8221;<\/span><\/strong><span leaf=\"\">\uff0c\u683c\u5f0f\u9009&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;HAR 1.4&#8221;<\/span><\/strong><span leaf=\"\">\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><span leaf=\"\" style=\"box-sizing: border-box;color: rgb(55, 65, 81);\"><span textstyle=\"\" style=\"color: rgb(171, 25, 66);font-weight: bold;\">5.&nbsp;<\/span><\/span><span leaf=\"\">\u6587\u4ef6\u4fdd\u5b58\u4e3a&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">capture_20260726.har<\/span><\/code><span leaf=\"\">\uff0c\u8fd9\u4e2a\u6587\u4ef6\u5c31\u662f\u6211\u4eec\u4e0b\u4e00\u6b65\u8981\u4ea4\u7ed9AI\u5206\u6790\u7684\u539f\u6750\u6599\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">HAR\u5bfc\u51fa\u6570\u636e\u6837\u4f8b\uff08\u8bf7\u6c42\u5728HAR\u91cc\u7684\u771f\u5b9e\u7ed3\u6784\uff09<\/span><\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.49074074074074076\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000548\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/BWmfcibGhS1Kj8XKaHOtUMm86KwhDpickfGJ08Q3KY6GfBsGcZ0Eic7UfqBKEfe9vKcDfCTnZrIHoppZ0XwDsncusYibp2yPVJPr9pgTXicoTbnA\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">HAR \u5bfc\u51fa\u6570\u636e\u6837\u4f8b \uff1a\u5305\u542b\u8bf7\u6c42URL\u3001\u65b9\u6cd5\u3001\u8bf7\u6c42\u4f53\u3001\u54cd\u5e94\u72b6\u6001\u548c\u54cd\u5e94\u4f53<\/span><\/span><\/span><\/span><\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;color: rgb(59, 7, 100);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\ud83d\udce6<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u4ec0\u4e48\u662fHAR\u6587\u4ef6\uff1f<\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">HAR\uff08HTTP Archive\uff09\u662f\u4e00\u79cd\u901a\u7528\u7684HTTP\u8bf7\u6c42\u8bb0\u5f55\u683c\u5f0f\uff0cChrome\u5f00\u53d1\u8005\u5de5\u5177\u548cPostman\u90fd\u652f\u6301\u5bfc\u51fa\u3002\u4e00\u4e2aHAR\u6587\u4ef6\u91cc\u5305\u542b\u4e86\u4e00\u7ec4\u8bf7\u6c42\u7684\u5b8c\u6574\u4fe1\u606f\uff1aURL\u3001\u8bf7\u6c42\u65b9\u6cd5\u3001\u8bf7\u6c42\u5934\u3001\u8bf7\u6c42\u4f53\u3001\u54cd\u5e94\u72b6\u6001\u7801\u3001\u54cd\u5e94\u4f53\u3002AI\u80fd\u8bfb\u53d6\u8fd9\u4e2a\u6587\u4ef6\uff0c\u8fd8\u539f\u6574\u4e2a\u4e1a\u52a1\u64cd\u4f5c\u8fc7\u7a0b\u3002<\/span><\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p data-pm-slice=\"0 0 []\"><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(217, 119, 6);border-radius: 20px;letter-spacing: 0.5px;\"><span leaf=\"\">\u7b2c\u56db\u7ae0<\/span><\/span><span leaf=\"\">&nbsp;<\/span><\/p>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;\"><span leaf=\"\">Step 2\uff1a\u7528Skill\u8ba9AI\u628a\u6d41\u91cf\u53cd\u63a8\u6210Swagger\u6587\u6863<\/span><\/h2>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83e\udd16<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u672c\u6587\u793a\u8303 AI<\/span><span textstyle=\"\" style=\"font-size: 15px;\">\uff1a<\/span><span textstyle=\"\" style=\"font-size: 15px;color: rgb(171, 25, 66);font-weight: bold;\">\u901a\u4e49\u5343\u95ee\uff08Qwen\uff09<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u9009\u5b83\u7684\u7406\u7531\uff1a\u56fd\u4ea7\u3001\u514d\u8d39\u3001\u7f51\u9875\u7248\u96f6\u95e8\u69db\uff08\u9002\u5408\u5c0f\u767d\uff09\uff0c\u4ee3\u7801\u4e0e\u6587\u6863\u751f\u6210\u80fd\u529b\u5f3a\uff0c\u4e14\u6709\u5f00\u6e90\u6743\u91cd\u53ef\u672c\u5730\u90e8\u7f72\uff08\u914d\u5408\u672c\u6587\u7b2c\u4e94\u7ae0\u7684 Ubuntu \u865a\u62df\u673a\u573a\u666f\uff0c\u4e5f\u80fd\u7528 Ollama \u8dd1 Qwen \u505a\u672c\u5730\u63a8\u7406\uff09\u4e0b\u6587\u6240\u6709&#8221;\u53d1\u7ed9 AI&#8221;\u7684\u64cd\u4f5c\uff0c\u5747\u4ee5\u901a\u4e49\u5343\u95ee\u7f51\u9875\u7248\uff08tongyi.aliyun.com\uff09\u4e3a\u4f8b\u3002<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">4.1 \u4e3a\u4ec0\u4e48\u8981\u7528Skill\u7ea6\u675fAI\u8f93\u51fa<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u76f4\u63a5\u628aHAR\u6587\u4ef6\u4e22\u7ed9AI\uff0c\u8ba9\u5b83&#8221;\u5e2e\u6211\u5206\u6790\u4e00\u4e0b\u8fd9\u4e9b\u63a5\u53e3&#8221;\uff0cAI\u5927\u6982\u7387\u4f1a\u7ed9\u4f60\u4e00\u6bb5\u63cf\u8ff0\u6027\u6587\u5b57\uff1a&#8221;\u7b2c\u4e00\u4e2a\u63a5\u53e3\u662fPOST \/api\/login\uff0c\u7528\u4e8e\u7528\u6237\u767b\u5f55\u2026\u2026&#8221;\u2014\u2014\u8fd9\u79cd\u4e1c\u897f\u5e73\u53f0\u8bfb\u4e0d\u4e86\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u6211\u4eec\u9700\u8981\u4e00\u4e2a&#8221;\u8f6c\u6362\u5668&#8221;\uff1a\u628a\u539f\u59cb\u6d41\u91cf\u6587\u4ef6\uff0c\u8f6c\u6210\u5e73\u53f0\u80fd\u8bfb\u61c2\u7684\u683c\u5f0f\u3002\u8fd9\u4e2a\u8f6c\u6362\u5668\uff0c\u5c31\u662f<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">Skill<\/span><\/strong><span leaf=\"\">\u3002<\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83e\udde0<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">Skill\u7684\u6838\u5fc3\u4ef7\u503c\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u628a&#8221;\u968f\u610f\u8f93\u51fa&#8221;\u53d8\u6210&#8221;\u6807\u51c6\u683c\u5f0f&#8221;\u3002\u6ca1\u6709Skill\uff0cAI\u7684\u8f93\u51fa\u5343\u53d8\u4e07\u5316\uff1b\u6709\u4e86Skill\uff0cAI\u7684\u8f93\u51fa\u683c\u5f0f\u7edf\u4e00\u3001\u5e73\u53f0\u53ef\u76f4\u63a5\u6d88\u8d39\u3002<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">SKILL\u7ea6\u675fAI\u8f93\u51fa\u6807\u51c6Swagger<\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5333333333333333\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000549\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/BWmfcibGhS1Ih9iaeia3ibqPib7ib1q3QPDO6rvN08Gc7mQeAY6sInKicj2dYbx5NfcfVGAIMdsJ17b1T3pO3hqhRiaSYh9PKmy31h6iawk5c09ib9ED8\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">Skill\u7ea6\u675f\u6d41\u7a0b \uff1a HAR\u539f\u59cb\u6570\u636e \u2192 AI+Skill \u2192 \u6807\u51c6Swagger\u6587\u6863<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">4.2 \u6838\u5fc3Skill\u5185\u5bb9\uff1aSwagger\u751f\u6210\u4e13\u5bb6<\/span><\/h3>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">SKILL.md\uff08\u89d2\u8272\u5b9a\u4e49\uff09<\/span><\/h4>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"markdown\"><code><span leaf=\"\"><span class=\"code-snippet__section\"># SKILL.md \u2014 HAR\u6d41\u91cf\u5206\u6790\u00b7Swagger\u6587\u6863\u751f\u6210\u4e13\u5bb6<\/span><\/span><\/code><code><span leaf=\"\">name: har-to-swagger-expert<\/span><\/code><code><span leaf=\"\">version: \"1.0\"<\/span><\/code><code><span leaf=\"\">description: |<\/span><\/code><code><span leaf=\"\">&nbsp; \u4f60\u662f\u4e00\u540d\u4e13\u4e1a\u7684API\u6587\u6863\u5de5\u7a0b\u5e08\uff0c\u7cbe\u901a\u4eceHAR\u6293\u5305\u6587\u4ef6\u6216\u539f\u59cbHTTP\u8bf7\u6c42\u65e5\u5fd7\u4e2d\uff0c<\/span><\/code><code><span leaf=\"\">&nbsp; \u63d0\u53d6\u63a5\u53e3\u4fe1\u606f\u5e76\u751f\u6210\u7b26\u5408OpenAPI 3.0\u89c4\u8303\u7684Swagger\u6587\u6863\u3002<\/span><\/code><code><span leaf=\"\">&nbsp; \u4f60\u7684\u8f93\u51fa\u5fc5\u987b\u7ed3\u6784\u5b8c\u6574\u3001\u683c\u5f0f\u89c4\u8303\uff0c\u53ef\u76f4\u63a5\u88ab\u63a5\u53e3\u6d4b\u8bd5\u5e73\u53f0\u89e3\u6790\u3002<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__section\">## \u6838\u5fc3\u804c\u8d23<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">-<\/span>&nbsp;\u4eceHAR JSON\u4e2d\u63d0\u53d6\uff1amethod\u3001url\u3001request body\u3001response body<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">-<\/span>&nbsp;\u4e3a\u6bcf\u4e2a\u63a5\u53e3\u751f\u6210\u7b26\u5408 OpenAPI 3.0 \u89c4\u8303\u7684 paths \u8282\u70b9<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">-<\/span>&nbsp;\u81ea\u52a8\u63a8\u65ad\u5b57\u6bb5\u7c7b\u578b\uff08string\/integer\/boolean\/object\/array\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">-<\/span>&nbsp;\u4ece\u54cd\u5e94\u4f53\u4e2d\u63d0\u53d6 schema \u5b9a\u4e49\uff08components\/schemas\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">-<\/span>&nbsp;\u5728\u6587\u6863\u4e2d\u5d4c\u5165\u671f\u671b\u65ad\u8a00\uff08\u901a\u8fc7 description \u5b57\u6bb5\u627f\u8f7d\uff0c\u4f9b\u5e73\u53f0\u8bfb\u53d6\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__section\">## \u8f93\u51fa\u89c4\u8303<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">1.<\/span>&nbsp;\u683c\u5f0f\uff1a\u5fc5\u987b\u8f93\u51fa\u5b8c\u6574 YAML \u683c\u5f0f\u7684 OpenAPI 3.0 \u6587\u6863<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">2.<\/span>&nbsp;\u6bcf\u4e2a\u63a5\u53e3\u5fc5\u987b\u5305\u542b\uff1a<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- operationId\uff08\u9a7c\u5cf0\u547d\u540d\uff0c\u5982 loginUser\uff09<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- summary\uff08\u4e2d\u6587\u7b80\u8981\u8bf4\u660e\uff09<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- requestBody\uff08\u53c2\u6570+\u7c7b\u578b\uff09<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- responses\uff08\u72b6\u6001\u7801+\u54cd\u5e94schema\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">3.<\/span>&nbsp;\u5728\u63a5\u53e3 summary \u672b\u5c3e\u9644\u52a0\u65ad\u8a00\u6807\u8bb0\uff1a<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- [\u65ad\u8a00:status=200] \u8868\u793a\u671f\u671b\u72b6\u6001\u7801200<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- [\u65ad\u8a00:token] \u8868\u793a\u54cd\u5e94\u5e94\u5305\u542btoken\u5b57\u6bb5<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- [\u65ad\u8a00:code=0] \u8868\u793a\u54cd\u5e94\u4f53code\u5b57\u6bb5\u5e94\u4e3a0<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">4.<\/span>&nbsp;\u7981\u6b62\u4e8b\u9879\uff1a<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- \u274c \u7981\u6b62\u7f16\u9020HAR\u6587\u4ef6\u4e2d\u4e0d\u5b58\u5728\u7684\u5b57\u6bb5<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- \u274c \u7981\u6b62\u7701\u7565\u54cd\u5e94\u7ed3\u6784<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- \u274c \u7981\u6b62\u8f93\u51fa\u975eYAML\u683c\u5f0f\uff08\u5982\u7eaf\u6587\u672c\u63cf\u8ff0\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__section\">## \u5206\u6790\u6b65\u9aa4<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">1.<\/span>&nbsp;\u8bfb\u53d6HAR\u6587\u4ef6JSON\uff0c\u904d\u5386log.entries<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">2.<\/span>&nbsp;\u63d0\u53d6request.method + request.url.pathname \u2192 \u4f5c\u4e3a\u63a5\u53e3path\u548cmethod<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">3.<\/span>&nbsp;\u89e3\u6790request.postData.text \u2192 \u4f5c\u4e3a\u8bf7\u6c42\u53c2\u6570<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">4.<\/span>&nbsp;\u89e3\u6790response.content.text \u2192 \u4f5c\u4e3a\u54cd\u5e94schema<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">5.<\/span>&nbsp;\u6309OpenAPI 3.0\u683c\u5f0f\u7ec4\u88c5YAML<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">6.<\/span>&nbsp;\u5728\u6bcf\u4e2a\u63a5\u53e3\u7684summary\u672b\u5c3e\u8ffd\u52a0\u65ad\u8a00\u6807\u8bb0<\/span><\/code><\/pre>\n<\/section>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">4.3 \u5b9e\u9645\u5206\u6790\u793a\u4f8b<\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5047\u8bbeHAR\u6587\u4ef6\u4e2d\u5305\u542b\u4ee5\u4e0b\u539f\u59cb\u8bf7\u6c42\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span leaf=\"\">POST https:\/\/api.example.com\/login<\/span><\/code><code><span leaf=\"\">Request Body: {\"username\":<span class=\"code-snippet__string\">\"admin\"<\/span>,<span class=\"code-snippet__string\">\"password\"<\/span>:<span class=\"code-snippet__string\">\"xxx123\"<\/span>}<\/span><\/code><code><span leaf=\"\">Response: {\"<span class=\"code-snippet__selector-tag\">code<\/span>\":<span class=\"code-snippet__number\">0<\/span>,<span class=\"code-snippet__string\">\"msg\"<\/span>:<span class=\"code-snippet__string\">\"\u767b\u5f55\u6210\u529f\"<\/span>,<span class=\"code-snippet__string\">\"data\"<\/span>:{\"token\":<span class=\"code-snippet__string\">\"eyJhbGciOiJIUzI1NiJ9...\"<\/span>}}<\/span><\/code><\/pre>\n<\/section>\n<p><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\">AI\u5728Skill\u7ea6\u675f\u4e0b\uff0c\u8f93\u51fa\u7684Swagger\u6587\u6863\u7247\u6bb5\u5982\u4e0b\uff1a<\/span><\/span><\/span><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span leaf=\"\">openapi: 3.0.0<\/span><\/code><code><span leaf=\"\">info:<\/span><\/code><code><span leaf=\"\">&nbsp; title: \u4e1a\u52a1\u7cfb\u7edf API<\/span><\/code><code><span leaf=\"\">&nbsp; version: 1.0.0<\/span><\/code><code><span leaf=\"\">paths:<\/span><\/code><code><span leaf=\"\">&nbsp; \/login:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; post:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; operationId: loginUser<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; summary: \u7528\u6237\u767b\u5f55\u63a5\u53e3 [\u65ad\u8a00:status=200] [\u65ad\u8a00:code=0] [\u65ad\u8a00:token]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; requestBody:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; required:&nbsp;<span class=\"code-snippet__literal\">true<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; content:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; application\/json:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schema:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: object<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: string<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u7528\u6237\u540d<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: string<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u5bc6\u7801<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; responses:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">'200'<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u767b\u5f55\u6210\u529f<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; content:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; application\/json:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; schema:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: object<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; code:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>:&nbsp;<span class=\"code-snippet__built_in\">integer<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u72b6\u6001\u7801\uff0c0\u8868\u793a\u6210\u529f<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: string<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u8fd4\u56de\u4fe1\u606f<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: object<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; token:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__built_in\">type<\/span>: string<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; description: \u8ba4\u8bc1\u4ee4\u724c<\/span><\/code><\/pre>\n<\/section>\n<section><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;color: rgb(20, 83, 45);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u2705<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u5173\u952e\u8bbe\u8ba1\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u65ad\u8a00\u4fe1\u606f\u5d4c\u5728 summary \u5b57\u6bb5\u672b\u5c3e\u7684&nbsp;<\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">[\u65ad\u8a00:xxx]<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">&nbsp;\u6807\u8bb0\u91cc\uff0c\u8fd9\u662f\u5e73\u53f0\u8bfb\u53d6\u671f\u671b\u503c\u7684\u65b9\u5f0f\u3002\u5e73\u53f0\u89e3\u6790Swagger\u65f6\uff0c\u7528\u6b63\u5219\u63d0\u53d6\u8fd9\u4e9b\u6807\u8bb0\uff0c\u81ea\u52a8\u751f\u6210\u65ad\u8a00\u903b\u8f91\u3002\u5b8c\u5168\u4e0d\u9700\u8981\u5199\u4ee3\u7801\u3002<\/span><\/span><\/section>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">4.4 \u5b8c\u6574Swagger\u6587\u6863\u751f\u6210\u5b9e\u6218<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5c06HAR\u6587\u4ef6\u5185\u5bb9\u548cSkill\u4e00\u8d77\u53d1\u7ed9AI\uff08\u63a8\u8350\u7528\u901a\u4e49\u5343\u95eeQwen\uff09\uff0cPrompt\u5982\u4e0b\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span leaf=\"\">\u8bf7\u626e\u6f14Swagger\u6587\u6863\u751f\u6210\u4e13\u5bb6\uff0c\u6839\u636e\u4ee5\u4e0bHAR\u6293\u5305\u6570\u636e\uff0c\u751f\u6210\u5b8c\u6574\u7684OpenAPI&nbsp;<span class=\"code-snippet__number\">3.0<\/span>\u6587\u6863\u3002<\/span><\/code><code><span leaf=\"\">\u8981\u6c42\uff1a<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">1<\/span>. \u5fc5\u987b\u8f93\u51fa\u5b8c\u6574YAML\u683c\u5f0f<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">2<\/span>. \u6bcf\u4e2a\u63a5\u53e3\u5305\u542b<span class=\"code-snippet__selector-tag\">summary<\/span>\u3001requestBody\u3001responses<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">3<\/span>. \u5728<span class=\"code-snippet__selector-tag\">summary<\/span>\u672b\u5c3e\u9644\u52a0<span class=\"code-snippet__selector-attr\">[\u65ad\u8a00:status=xxx]<\/span>\u6807\u8bb0<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">4<\/span>. \u7981\u6b62\u7f16\u9020\u5b57\u6bb5\uff0c\u53ea\u80fd\u57fa\u4e8e\u63d0\u4f9b\u7684HAR\u6570\u636e<\/span><\/code><code><span leaf=\"\">\u4ee5\u4e0b\u662fHAR\u6587\u4ef6\u5185\u5bb9\uff1a<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__selector-attr\">[\u7c98\u8d34HAR\u6587\u4ef6JSON\u5185\u5bb9]<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">AI\u4f1a\u8f93\u51fa\u4e00\u4efd\u5b8c\u6574\u7684Swagger YAML\u6587\u6863\u3002\u628a\u8fd9\u4efd\u6587\u6863\u4fdd\u5b58\u4e3a&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api_spec.yaml<\/span><\/code><span leaf=\"\">\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u4e0b\u4e00\u6b65\u8981\u5582\u7ed9\u6d4b\u8bd5\u5e73\u53f0\u7684\u539f\u6750\u6599\u3002<\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udca1<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u63d0\u793a\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u5982\u679cHAR\u6587\u4ef6\u8f83\u5927\uff08\u5305\u542b\u4e0a\u767e\u4e2a\u8bf7\u6c42\uff09\uff0c\u53ef\u4ee5\u5206\u6279\u53d1\u7ed9AI\uff0c\u6bcf\u627930\u201350\u4e2a\u8bf7\u6c42\uff0c\u907f\u514d\u5355\u6b21token\u8d85\u9650\u3002\u7136\u540e\u7528YAML\u5408\u5e76\u5de5\u5177\u62fc\u6210\u4e00\u4efd\u5b8c\u6574\u6587\u6863\u3002<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">4.5 AI \u4f7f\u7528\u8be6\u7ec6\u6307\u5357\uff1a\u5c0f\u767d\u4e0a\u624b\u56db\u6b65<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5982\u679c\u4f60\u4ece\u6ca1\u7528 AI \u5199\u8fc7\u4ee3\u7801\u6216\u6587\u6863\uff0c\u7167\u7740\u4e0b\u9762\u56db\u6b65\u8d70\u5c31\u80fd\u5b8c\u6210&#8221;\u6d41\u91cf\u2192Swagger&#8221;\u7684\u8f6c\u5316\uff1a<\/span><\/p>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u7b2c 1 \u6b65\uff1a\u6253\u5f00\u901a\u4e49\u5343\u95ee<\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u6d4f\u89c8\u5668\u8bbf\u95ee&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">tongyi.aliyun.com<\/span><\/strong><span leaf=\"\">\uff08\u6216\u7528\u300c\u901a\u4e49\u5343\u95ee\u300dApp\uff09\uff0c\u7528\u6dd8\u5b9d\/\u652f\u4ed8\u5b9d\u8d26\u53f7\u767b\u5f55\u5373\u53ef\uff0c<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5b8c\u5168\u514d\u8d39<\/span><\/strong><span leaf=\"\">\u3002\u767b\u5f55\u540e\u70b9\u51fb\u300c\u65b0\u5efa\u5bf9\u8bdd\u300d\uff0c\u8fdb\u5165\u4e00\u4e2a\u5e72\u51c0\u7684\u804a\u5929\u7a97\u53e3\u3002<\/span><\/p>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u7b2c 2 \u6b65\uff1a\u628a Skill + \u6570\u636e\u4e00\u8d77\u53d1\u7ed9 AI<\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u628a\u672c\u6587 4.2 \u8282\u7684&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">SKILL.md \u5168\u6587<\/span><\/strong><span leaf=\"\">&nbsp;\u590d\u5236\u4e0b\u6765\uff0c\u518d\u6253\u5f00\u4f60\u5bfc\u51fa\u7684&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">.har<\/span><\/code><span leaf=\"\">&nbsp;\u6587\u4ef6\uff08\u7528\u8bb0\u4e8b\u672c\u5c31\u80fd\u6253\u5f00\uff09\uff0c<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5168\u9009\u590d\u5236<\/span><\/strong><span leaf=\"\">\u91cc\u9762\u7684\u5185\u5bb9\u3002\u7136\u540e\u6309 4.4 \u8282\u7684 Prompt \u6a21\u677f\uff0c\u628a\u300cSKILL \u5185\u5bb9 + HAR \u6570\u636e + \u8981\u6c42\u300d\u6309\u987a\u5e8f\u7c98\u8d34\u5230\u5bf9\u8bdd\u6846\uff0c\u4e00\u6b21\u6027\u53d1\u9001\u3002<\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udccb<span textstyle=\"\" style=\"font-size: 15px;\">HAR \u592a\u5927\u7c98\u4e0d\u4e0b\u600e\u4e48\u529e\uff1f<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u7528\u8bb0\u4e8b\u672c\u6253\u5f00 .har\uff0c\u53d1\u73b0\u5185\u5bb9\u8d85\u957f\u3001\u5bf9\u8bdd\u6846\u7c98\u4e0d\u4e0b\u65f6\uff0c\u6309 4.4 \u63d0\u793a\u5206\u6279\uff1a\u7b2c\u4e00\u6279\u53ea\u53d1\u300c\u767b\u5f55+\u67e5\u8be2\u300d\u51e0\u4e2a\u8bf7\u6c42\uff0c\u7b2c\u4e8c\u6279\u53d1\u300c\u4e0b\u5355+\u652f\u4ed8\u300d\u3002\u6bcf\u6279\u53d1\u5b8c\uff0c\u8ba9 AI \u8f93\u51fa\u8fd9\u90e8\u5206\u63a5\u53e3\u7684 YAML\uff0c\u6700\u540e\u4f60\u624b\u52a8\u628a\u51e0\u6bb5 YAML \u62fc\u6210\u4e00\u4e2a\u6587\u4ef6\u3002<\/span><\/span><\/p>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u7b2c 3 \u6b65\uff1a\u62ff\u5230 AI \u7684\u8f93\u51fa\u5e76\u4fdd\u5b58<\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">AI \u56de\u590d\u91cc\u4f1a\u6709\u4e00\u6bb5\u4ee5&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">openapi: 3.0.0<\/span><\/code><span leaf=\"\">&nbsp;\u5f00\u5934\u7684 YAML \u4ee3\u7801\u3002<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5168\u9009\u590d\u5236<\/span><\/strong><span leaf=\"\">\u5b83\uff0c\u5728\u7535\u8111\u4e0a\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\uff0c\u7c98\u8d34\u8fdb\u53bb\uff0c\u4fdd\u5b58\u4e3a&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api_spec.yaml<\/span><\/code><span leaf=\"\">\uff08\u6ce8\u610f\u540e\u7f00\u662f&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">.yaml<\/span><\/code><span leaf=\"\">\uff0c\u4e0d\u662f .txt\uff09\u3002<\/span><\/p>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u7b2c 4 \u6b65\uff1a\u9a8c\u8bc1\u4e0e\u91cd\u8bd5<\/span><\/h4>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\">\n<section><span leaf=\"\">\u5982\u679c AI \u8f93\u51fa\u7684\u662f\u300c\u89e3\u91ca\u6587\u5b57\u300d\u800c\u4e0d\u662f YAML \u4ee3\u7801 \u2192 \u56de\u590d\u5b83\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;\u8bf7\u53ea\u8f93\u51fa YAML \u4ee3\u7801\uff0c\u4e0d\u8981\u4efb\u4f55\u89e3\u91ca&#8221;<\/span><\/strong><span leaf=\"\">\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\">\n<section><span leaf=\"\">\u5982\u679c\u8f93\u51fa\u88ab\u622a\u65ad\u3001\u672b\u5c3e\u4e0d\u5b8c\u6574 \u2192 \u56de\u590d\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;\u7ee7\u7eed\u8f93\u51fa\u5269\u4f59\u90e8\u5206&#8221;<\/span><\/strong><span leaf=\"\">\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\">\n<section><span leaf=\"\">\u5982\u679c YAML \u683c\u5f0f\u62a5\u9519\uff08\u6bd4\u5982\u7f29\u8fdb\u4e0d\u5bf9\uff09\u2192 \u628a\u62a5\u9519\u4fe1\u606f\u8d34\u56de\u7ed9 AI\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">&#8220;\u8fd9\u6bb5 YAML \u89e3\u6790\u62a5\u9519\uff1axxx\uff0c\u8bf7\u4fee\u6b63\u540e\u91cd\u65b0\u8f93\u51fa&#8221;<\/span><\/strong><span leaf=\"\">\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\u2705<span textstyle=\"\" style=\"font-size: 15px;\">\u62ff\u5230&nbsp;<\/span><\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">api_spec.yaml<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">&nbsp;\u540e\uff0c\u4f60\u5c31\u5b8c\u6210\u4e86&#8221;\u6d41\u91cf \u2192 Swagger&#8221;\u7684\u5173\u952e\u4e00\u6b65\u3002\u4e0b\u4e00\u6b65\u8fdb\u5165\u7b2c\u4e94\u7ae0\uff0c\u7528 AI \u751f\u6210\u6d4b\u8bd5\u5e73\u53f0\u6765\u6d88\u8d39\u8fd9\u4efd\u6587\u6863\u3002<\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<section><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(220, 38, 38);border-radius: 20px;letter-spacing: 0.5px;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u7b2c\u4e94\u7ae0<\/span><\/span><span style=\"color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;\"><span leaf=\"\">&nbsp;<\/span><\/span><\/section>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">Step 3\uff1aAI\u751f\u6210\u8f7b\u91cfWeb\u63a5\u53e3\u6d4b\u8bd5\u5e73\u53f0<\/span><\/h2>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><br  \/><\/span><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">\u8f7b\u91cfWEB\u63a5\u53e3\u6d4b\u8bd5\u5e73\u53f0<\/span><\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5305555555555556\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000550\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/BWmfcibGhS1Kv7X35WpszTx5Bn4NAfa9gv31wXV59GBwgoTSI7alAib0vTcu9gRLCYvlCAQZ7weX3EIzmSWQmhklk8yFRI14RJoBKibFN7ibxtg\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u8f7b\u91cfWeb\u63a5\u53e3\u6d4b\u8bd5\u5e73\u53f0 \u2014 \u4e0a\u4f20Swagger \u2192 \u9009\u63a5\u53e3 \u2192 \u8dd1\u6d4b\u8bd5 \u2192 \u770b\u62a5\u544a<\/span><\/span><\/span><\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.0 \u524d\u63d0\u73af\u5883\uff1a\u672c\u5730 Ubuntu \u865a\u62df\u673a<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u672c\u6587\u5047\u8bbe\u4f60\u5728 Windows \u5bbf\u4e3b\u673a\u4e0a\u7528 VMware \u6216 VirtualBox \u8dd1\u4e86\u4e00\u53f0&nbsp;<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">Ubuntu 22.04 \u865a\u62df\u673a<\/span><\/strong><span leaf=\"\">\uff0c\u5e73\u53f0\u5c31\u90e8\u7f72\u5728\u8fd9\u53f0\u865a\u62df\u673a\u91cc\u3002\u7528\u865a\u62df\u673a\u7684\u597d\u5904\uff1a\u73af\u5883\u5e72\u51c0\u3001\u4e0d\u5f71\u54cd\u5bbf\u4e3b\u3001\u4e07\u4e00\u641e\u574f\u4e86\u8fd8\u80fd\u7528\u5feb\u7167\u56de\u6eda\u3002<\/span><\/p>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4e3a\u4e86\u8ba9\u5bbf\u4e3b\u673a\u7684\u6d4f\u89c8\u5668\u80fd\u8bbf\u95ee\u865a\u62df\u673a\u91cc\u7684\u5e73\u53f0\uff0c\u9700\u8981\u5148\u505a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u7aef\u53e3\u8f6c\u53d1<\/span><\/strong><span leaf=\"\">\uff08\u628a\u865a\u62df\u673a\u7684 8000 \u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u7684 8000 \u7aef\u53e3\uff09\uff1a<\/span><\/p>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">VirtualBox<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u865a\u62df\u673a\u300c\u8bbe\u7f6e\u300d\u2192\u300c\u7f51\u7edc\u300d\u2192 \u7f51\u53611\uff08NAT\uff09\u2192\u300c\u9ad8\u7ea7\u300d\u2192\u300c\u7aef\u53e3\u8f6c\u53d1\u300d\u2192 \u65b0\u589e\u89c4\u5219\uff1a\u540d\u79f0\u586b&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api<\/span><\/code><span leaf=\"\">\uff0c\u534f\u8bae TCP\uff0c\u5bbf\u4e3b\u7aef\u53e3&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">8000<\/span><\/code><span leaf=\"\">\uff0c\u5b50\u7cfb\u7edf\u7aef\u53e3&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">8000<\/span><\/code><span leaf=\"\">\u3002<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">VMware<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u83dc\u5355\u300c\u7f16\u8f91\u300d\u2192\u300c\u865a\u62df\u7f51\u7edc\u7f16\u8f91\u5668\u300d\u2192 \u9009 NAT \u7f51\u5361 \u2192\u300cNAT \u8bbe\u7f6e\u300d\u2192\u300c\u7aef\u53e3\u8f6c\u53d1\u300d\u2192 \u65b0\u589e\uff1a\u5bbf\u4e3b\u7aef\u53e3 8000\uff0c\u865a\u62df\u673a IP\uff08\u5982&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">192.168.137.100<\/span><\/code><span leaf=\"\">\uff09\uff0c\u865a\u62df\u673a\u7aef\u53e3 8000\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udca1<span textstyle=\"\" style=\"font-size: 15px;\">\u914d\u7f6e\u597d\u540e\uff0c\u5bbf\u4e3b\u6d4f\u89c8\u5668\u8bbf\u95ee&nbsp;<\/span><\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">http:\/\/localhost:8000<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">&nbsp;\u5c31\u80fd\u6253\u5f00\u865a\u62df\u673a\u91cc\u7684\u5e73\u53f0\u3002\u82e5\u7528\u6865\u63a5\u6a21\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u62ff\u865a\u62df\u673a IP \u8bbf\u95ee\uff08\u865a\u62df\u673a\u91cc\u6267\u884c&nbsp;<\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">ip addr<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">&nbsp;\u67e5\u770b\uff0c\u5982&nbsp;<\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">http:\/\/192.168.137.100:8000<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\uff09\u3002<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">5.1 \u5e73\u53f0\u6838\u5fc3\u80fd\u529b\u8bbe\u8ba1<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u4e2a\u5e73\u53f0\u53ea\u9700\u8981\u56db\u4e2a\u6838\u5fc3\u529f\u80fd\uff1a<\/span><\/p>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u8bfb\u53d6Swagger\u6587\u6863<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u89e3\u6790YAML\uff0c\u63d0\u53d6\u63a5\u53e3\u5217\u8868\uff08path + method\uff09<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u53d1\u9001HTTP\u8bf7\u6c42<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u6309\u6587\u6863\u5b9a\u4e49\u7ec4\u88c5\u8bf7\u6c42\uff0c\u81ea\u52a8\u643a\u5e26\u53c2\u6570\u548cHeader<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u6267\u884c\u65ad\u8a00<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u4ecesummary\u4e2d\u7684&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">[\u65ad\u8a00:xxx]<\/span><\/code><span leaf=\"\">&nbsp;\u6807\u8bb0\u63d0\u53d6\u671f\u671b\u503c\uff0c\u5bf9\u6bd4\u5b9e\u9645\u7ed3\u679c<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u751f\u6210\u62a5\u544a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u6c47\u603b\u6240\u6709\u7528\u4f8b\u7ed3\u679c\uff0c\u8f93\u51faHTML\u62a5\u544a<\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u662f\u4e00\u4e2a\u7eaf\u524d\u7aef+Python\u540e\u7aef\u7684\u8f7b\u91cf\u5e94\u7528\u3002\u524d\u7aef\u8d1f\u8d23\u5c55\u793a\u548c\u4ea4\u4e92\uff0c\u540e\u7aef\u7528FastAPI\u5904\u7406\u8bf7\u6c42\u548c\u65ad\u8a00\u903b\u8f91\u3002\u6574\u4e2a\u9879\u76eeAI\u53ef\u4ee5\u5e2e\u4f60\u751f\u6210\uff0c\u4f60\u53ea\u9700\u8981\u63d0\u4f9bPrompt\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">5.2 \u9879\u76ee\u7ed3\u6784\u4e0e AI \u751f\u6210\u7b56\u7565<\/span><\/h3>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span leaf=\"\">api-test-platform\/<\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500 app.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__meta\"># FastAPI \u4e3b\u7a0b\u5e8f<\/span><\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500 swagger_parser.py &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__meta\"># Swagger YAML \u89e3\u6790\u5668<\/span><\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500 test_runner.py &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__meta\"># \u6d4b\u8bd5\u6267\u884c\u5668\uff08\u53d1\u9001\u8bf7\u6c42+\u65ad\u8a00\uff09<\/span><\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500 report_generator.py &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__meta\"># HTML \u62a5\u544a\u751f\u6210\u5668<\/span><\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500 templates\/<\/span><\/code><code><span leaf=\"\">\u2502 &nbsp; \u2514\u2500\u2500 report.html &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__meta\"># \u62a5\u544a\u6a21\u677f<\/span><\/span><\/code><code><span leaf=\"\">\u251c\u2500\u2500&nbsp;<span class=\"code-snippet__keyword\">static<\/span>\/<\/span><\/code><code><span leaf=\"\">\u2502 &nbsp; \u2514\u2500\u2500 style.css &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__meta\"># \u524d\u7aef\u6837\u5f0f<\/span><\/span><\/code><code><span leaf=\"\">\u2514\u2500\u2500 uploads\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class=\"code-snippet__meta\"># \u4e34\u65f6\u4e0a\u4f20\u76ee\u5f55<\/span><\/span><\/code><\/pre>\n<\/section>\n<p><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><strong data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(171, 25, 66);\">\u4e0d\u8981\u4e00\u6b21\u8ba9 AI \u751f\u6210\u6574\u4e2a\u9879\u76ee<\/span><\/span><\/strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(171, 25, 66);\">\u2014\u2014\u90a3\u6837\u5bb9\u6613\u6f0f\u6587\u4ef6\u3001\u51fa\u9519\u4e5f\u96be\u67e5<\/span><span textstyle=\"\" style=\"font-size: 15px;\">\u3002\u5efa\u8bae<\/span><\/span><strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 15px;\">\u6309\u6587\u4ef6\u9010\u4e2a\u8ba9 AI \u751f\u6210<\/span><\/span><\/strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 15px;\">\uff0c\u6bcf\u751f\u6210\u4e00\u4e2a\u5c31\u653e\u8fdb\u865a\u62df\u673a\u3001\u68c0\u67e5\u4e00\u904d\uff0c\u7a33\u624e\u7a33\u6253\u3002\u4e0b\u9762\u56db\u4e2a\u5c0f\u8282\uff0c\u6bcf\u4e2a\u90fd\u7ed9\u51fa&#8221;\u7ed9 AI \u7684 Prompt&#8221;\u548c\u751f\u6210\u7ed3\u679c\u3002<\/span><\/span><\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.3 \u8ba9 AI \u751f\u6210 app.py<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u7ed9 AI \u7684 Prompt\uff08\u76f4\u63a5\u590d\u5236\u53d1\u7ed9\u901a\u4e49\u5343\u95ee\uff09\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"markdown\"><code><span leaf=\"\">\u4f60\u662f\u4e00\u540d Python \u540e\u7aef\u5de5\u7a0b\u5e08\u3002\u8bf7\u7528 FastAPI \u5199\u4e00\u4e2a\u8f7b\u91cf API \u6d4b\u8bd5\u5e73\u53f0\u7684\u4e3b\u7a0b\u5e8f app.py\u3002<\/span><\/code><code><span leaf=\"\">\u8981\u6c42\uff1a<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">1.<\/span>&nbsp;\u9996\u9875\u662f\u4e00\u4e2a\u4e0a\u4f20 Swagger YAML \u7684\u9875\u9762\uff08HTML \u53ef\u4ee5\u76f4\u63a5\u5199\u8fdb Python \u5b57\u7b26\u4e32\u91cc\u8fd4\u56de\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">2.<\/span>&nbsp;\u63d0\u4f9b POST \/upload \u63a5\u53e3\uff0c\u63a5\u6536\u4e0a\u4f20\u7684 .yaml \u6587\u4ef6<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">3.<\/span>&nbsp;\u8c03\u7528 swagger<span class=\"code-snippet__emphasis\">_parser.extract_<\/span>endpoints(spec) \u89e3\u6790\u63a5\u53e3\u5217\u8868<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">4.<\/span>&nbsp;\u5bf9\u6bcf\u4e2a\u63a5\u53e3\u8c03\u7528 test<span class=\"code-snippet__emphasis\">_runner.run_<\/span>test(spec, ep) \u6267\u884c\u6d4b\u8bd5<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">5.<\/span>&nbsp;\u8c03\u7528 report<span class=\"code-snippet__emphasis\">_generator.generate_<\/span>report(results, path) \u751f\u6210 HTML \u62a5\u544a\u5230 static\/reports\/<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">6.<\/span>&nbsp;\u8fd4\u56de\u62a5\u544a\u7684\u8bbf\u95ee URL\uff08\u5982 \/static\/reports\/report<span class=\"code-snippet__emphasis\">_xxx.html\uff09<\/span><\/span><\/code><code><span leaf=\"\">\u8bf7\u8f93\u51fa\u5b8c\u6574\u53ef\u8fd0\u884c\u4ee3\u7801\uff0c\u542b\u4e2d\u6587\u6ce8\u91ca\u3002<\/span><\/code><\/pre>\n<\/section>\n<p><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 15px;\">AI \u751f\u6210\u7ed3\u679c\u5982\u4e0b\uff08\u5df2\u9a8c\u8bc1\u53ef\u8fd0\u884c\uff09\uff1a<\/span><\/span><\/span><\/span><\/span><\/p>\n<h1 style=\"text-align: center;\" data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"text-align: center;box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">\ud83d\udd27 API \u6d4b\u8bd5\u5e73\u53f0\uff1a<\/span><\/span><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color: rgba(0, 0, 0, 0.9);font-size: 17px;font-family: mp-quote, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 1.6;letter-spacing: 0.034em;font-style: normal;font-weight: normal;\"><br  \/><\/span><\/span><\/h1>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.6953703703703704\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000551\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/BWmfcibGhS1IicEoanuMp99Oq3QU58RySDicpbxDNL9sXbLqVGa1AA0nBx2y2Fv6Piab8m0ZtqVTcSrPFfArk3uLaR0cP7c7WMRuZnibZUj4eeIA\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<section style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;flex-shrink: 0;color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\">\u4e0a\u4f20 Swag<\/span><\/span><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;flex-shrink: 0;color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\">ger YAML \u2192 \u81ea\u52a8\u6267\u884c\u6d4b\u8bd5 \u2192 \u751f\u6210\u62a5\u544a<\/span><\/span><\/section>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.4 \u8ba9 AI \u751f\u6210 swagger_parser.py<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u7ed9 AI \u7684 Prompt\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span leaf=\"\">\u8bf7\u7528 Python \u5199\u4e00\u4e2a swagger_parser<span class=\"code-snippet__selector-class\">.py<\/span>\u3002<\/span><\/code><code><span leaf=\"\">\u8981\u6c42\uff1a<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">1<\/span>. parse_swagger(yaml_path) \u8bfb\u53d6\u5e76\u89e3\u6790 Swagger YAML\uff0c\u8fd4\u56de dict<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">2<\/span>. extract_endpoints(spec) \u4ece OpenAPI&nbsp;<span class=\"code-snippet__number\">3.0<\/span>&nbsp;spec \u4e2d\u63d0\u53d6\u6240\u6709\u63a5\u53e3<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;\u6bcf\u4e2a\u63a5\u53e3\u8fd4\u56de dict\uff0c\u542b\uff1a<span class=\"code-snippet__selector-tag\">path<\/span>\u3001method(\u5927\u5199)\u3001<span class=\"code-snippet__selector-tag\">summary<\/span>(\u53bb\u6389\u65ad\u8a00\u6807\u8bb0\u540e\u7684\u7eaf\u8bf4\u660e)\u3001<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;assertions(\u4ece&nbsp;<span class=\"code-snippet__selector-tag\">summary<\/span>&nbsp;\u91cc\u7528\u6b63\u5219\u63d0\u53d6&nbsp;<span class=\"code-snippet__selector-attr\">[\u65ad\u8a00:xxx]<\/span>&nbsp;\u7684\u5185\u5bb9\u5217\u8868)<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__number\">3<\/span>. \u542b\u4e2d\u6587\u6ce8\u91ca\uff0c\u5b8c\u6574\u53ef\u8fd0\u884c\u3002<\/span><\/code><\/pre>\n<\/section>\n<section><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\">AI \u751f\u6210\u7ed3\u679c\uff1a<\/span><\/span><\/span><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span leaf=\"\"><span class=\"code-snippet__comment\"># swagger_parser.py \u2014 Swagger YAML \u89e3\u6790\u5668<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">import<\/span>&nbsp;yaml, re<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">parse_swagger<\/span>(<span class=\"code-snippet__params\">yaml_path:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">str<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">dict<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u8bfb\u53d6\u5e76\u89e3\u6790Swagger YAML\u6587\u4ef6\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">with<\/span>&nbsp;<span class=\"code-snippet__built_in\">open<\/span>(yaml_path, encoding=<span class=\"code-snippet__string\">\"utf-8\"<\/span>)&nbsp;<span class=\"code-snippet__keyword\">as<\/span>&nbsp;f:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;yaml.safe_load(f)<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">extract_endpoints<\/span>(<span class=\"code-snippet__params\">spec:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">list<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u4eceSwagger spec\u4e2d\u63d0\u53d6\u6240\u6709\u7aef\u70b9\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; endpoints = []<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; paths = spec.get(<span class=\"code-snippet__string\">\"paths\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">for<\/span>&nbsp;path, methods&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;paths.items():<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">for<\/span>&nbsp;method, detail&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;methods.items():<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">if<\/span>&nbsp;method&nbsp;<span class=\"code-snippet__keyword\">not<\/span>&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;(<span class=\"code-snippet__string\">\"get\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"post\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"put\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"delete\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"patch\"<\/span>):<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">continue<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__comment\"># \u4ecesummary\u672b\u5c3e\u63d0\u53d6\u65ad\u8a00\u6807\u8bb0<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; summary = detail.get(<span class=\"code-snippet__string\">\"summary\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"\"<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; assertions = re.findall(<span class=\"code-snippet__string\">r'\\[\u65ad\u8a00:([^\\]]+)\\]'<\/span>, summary)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endpoints.append({<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"path\"<\/span>: path,<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"method\"<\/span>: method.upper(),<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"summary\"<\/span>: re.sub(<span class=\"code-snippet__string\">r'\\[\u65ad\u8a00:[^\\]]+\\]'<\/span>,&nbsp;<span class=\"code-snippet__string\">''<\/span>, summary).strip(),<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"assertions\"<\/span>: assertions,<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"detail\"<\/span>: detail<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;endpoints<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">extract_request_body<\/span>(<span class=\"code-snippet__params\">detail:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">dict<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u63d0\u53d6\u8bf7\u6c42\u4f53\u5b9a\u4e49\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; rb = detail.get(<span class=\"code-snippet__string\">\"requestBody\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; content = rb.get(<span class=\"code-snippet__string\">\"content\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; json_schema = content.get(<span class=\"code-snippet__string\">\"application\/json\"<\/span>, {}) \\<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .get(<span class=\"code-snippet__string\">\"schema\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;json_schema<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">extract_response_schema<\/span>(<span class=\"code-snippet__params\">detail:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span><span class=\"code-snippet__params\">, status:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">str<\/span><\/span><span class=\"code-snippet__params\">&nbsp;=&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__string\">\"200\"<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">dict<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u63d0\u53d6\u54cd\u5e94\u4f53\u5b9a\u4e49\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; responses = detail.get(<span class=\"code-snippet__string\">\"responses\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; resp = responses.get(status, responses.get(<span class=\"code-snippet__string\">\"default\"<\/span>, {}))<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; content = resp.get(<span class=\"code-snippet__string\">\"content\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; json_schema = content.get(<span class=\"code-snippet__string\">\"application\/json\"<\/span>, {}) \\<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .get(<span class=\"code-snippet__string\">\"schema\"<\/span>, {})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;json_schema<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.5 \u8ba9 AI \u751f\u6210 test_runner.py<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u7ed9 AI \u7684 Prompt\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"markdown\"><code><span leaf=\"\">\u8bf7\u7528 Python \u5199 test<span class=\"code-snippet__emphasis\">_runner.py\uff0c\u8d1f\u8d23\u53d1\u9001 HTTP \u8bf7\u6c42\u5e76\u6267\u884c\u65ad\u8a00\u3002<\/span><\/span><\/code><code><span leaf=\"\">\u8981\u6c42\uff1a<\/span><\/code><code><span leaf=\"\">1. \u9876\u90e8\u957f\u4e00\u4e2a\u5e38\u91cf BASE_URL\uff08\u5b57\u7b26\u4e32\uff0c\u7528\u6237\u9700\u6539\u6210\u771f\u5b9e API \u5730\u5740\uff09<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">2.<\/span>&nbsp;parse<span class=\"code-snippet__emphasis\">_assertion(assert_<\/span>str) \u89e3\u6790 [\u65ad\u8a00:xxx] \u6807\u8bb0\uff0c\u8fd4\u56de\u65ad\u8a00\u7c7b\u578b\u548c\u671f\u671b\u503c<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- status=200 \u2192 \u6821\u9a8c\u72b6\u6001\u7801<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- token \u2192 \u6821\u9a8c\u54cd\u5e94\u542b\u8be5\u5b57\u6bb5<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;- code=0 \u2192 \u6821\u9a8c\u54cd\u5e94\u4f53\u8be5\u5b57\u6bb5\u7b49\u4e8e\u503c<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">3.<\/span>&nbsp;check<span class=\"code-snippet__emphasis\">_assertion(resp, assertion) \u8fd4\u56de (\u662f\u5426\u901a\u8fc7, \u8bf4\u660e\u6587\u5b57)<\/span><\/span><\/code><code><span leaf=\"\">4. async run_test(spec, endpoint) \u6309 method \u53d1\u8bf7\u6c42\uff0c\u6267\u884c\u8be5\u63a5\u53e3\u6240\u6709\u65ad\u8a00\uff0c\u8fd4\u56de\u7ed3\u679c dict<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__bullet\">5.<\/span>&nbsp;\u542b\u4e2d\u6587\u6ce8\u91ca\uff0c\u5b8c\u6574\u53ef\u8fd0\u884c\u3002<\/span><\/code><\/pre>\n<\/section>\n<p><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\">AI \u751f\u6210\u7ed3\u679c\uff1a<\/span><\/span><\/span><\/span><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span leaf=\"\"><span class=\"code-snippet__comment\"># test_runner.py \u2014 \u6d4b\u8bd5\u6267\u884c\u5668<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">import<\/span>&nbsp;requests, re<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">from<\/span>&nbsp;typing&nbsp;<span class=\"code-snippet__keyword\">import<\/span>&nbsp;<span class=\"code-snippet__type\">Optional<\/span><\/span><\/code><code><span leaf=\"\">BASE_URL =&nbsp;<span class=\"code-snippet__string\">\"https:\/\/api.example.com\"<\/span>&nbsp;&nbsp;<span class=\"code-snippet__comment\"># \u2190 \u4fee\u6539\u4e3a\u5b9e\u9645API\u5730\u5740<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">parse_assertion<\/span>(<span class=\"code-snippet__params\">assert_str:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">str<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">dict<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u89e3\u6790 [\u65ad\u8a00:xxx] \u6807\u8bb0\uff0c\u8fd4\u56de\u65ad\u8a00\u7c7b\u578b\u548c\u671f\u671b\u503c\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">if<\/span>&nbsp;assert_str.startswith(<span class=\"code-snippet__string\">\"status=\"<\/span>):<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<span class=\"code-snippet__string\">\"type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"status_code\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"expected\"<\/span>:&nbsp;<span class=\"code-snippet__built_in\">int<\/span>(assert_str.split(<span class=\"code-snippet__string\">\"=\"<\/span>)[<span class=\"code-snippet__number\">1<\/span>])}<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;assert_str ==&nbsp;<span class=\"code-snippet__string\">\"token\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<span class=\"code-snippet__string\">\"type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"field_exists\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"field\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"token\"<\/span>}<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;<span class=\"code-snippet__string\">\"=\"<\/span>&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;assert_str:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; key, val = assert_str.split(<span class=\"code-snippet__string\">\"=\"<\/span>,&nbsp;<span class=\"code-snippet__number\">1<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">try<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<span class=\"code-snippet__string\">\"type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"field_equal\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"field\"<\/span>: key,&nbsp;<span class=\"code-snippet__string\">\"expected\"<\/span>:&nbsp;<span class=\"code-snippet__built_in\">int<\/span>(val)}<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">except<\/span>&nbsp;ValueError:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<span class=\"code-snippet__string\">\"type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"field_equal\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"field\"<\/span>: key,&nbsp;<span class=\"code-snippet__string\">\"expected\"<\/span>: val}<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<span class=\"code-snippet__string\">\"type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"unknown\"<\/span>,&nbsp;<span class=\"code-snippet__string\">\"raw\"<\/span>: assert_str}<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">check_assertion<\/span>(<span class=\"code-snippet__params\">response: requests.Response, assertion:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">tuple<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u6267\u884c\u5355\u4e2a\u65ad\u8a00\uff0c\u8fd4\u56de (\u662f\u5426\u901a\u8fc7, \u8bf4\u660e)\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; a_type = assertion[<span class=\"code-snippet__string\">\"type\"<\/span>]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">if<\/span>&nbsp;a_type ==&nbsp;<span class=\"code-snippet__string\">\"status_code\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; ok = response.status_code == assertion[<span class=\"code-snippet__string\">\"expected\"<\/span>]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;ok,&nbsp;<span class=\"code-snippet__string\">f\"\u72b6\u6001\u7801&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{response.status_code}<\/span><\/span><span class=\"code-snippet__string\">&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'=='<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">if<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;ok&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">else<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'!='<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">}<\/span><\/span><span class=\"code-snippet__string\">&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{assertion[<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'expected'<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">]}<\/span><\/span><span class=\"code-snippet__string\">\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;a_type ==&nbsp;<span class=\"code-snippet__string\">\"field_exists\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; ok = assertion[<span class=\"code-snippet__string\">\"field\"<\/span>]&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;response.json()<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;ok,&nbsp;<span class=\"code-snippet__string\">f\"\u5b57\u6bb5&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{assertion[<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'field'<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">]}<\/span><\/span><span class=\"code-snippet__string\">&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'\u5b58\u5728'<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">if<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;ok&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">else<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'\u4e0d\u5b58\u5728'<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">}<\/span><\/span><span class=\"code-snippet__string\">\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;a_type ==&nbsp;<span class=\"code-snippet__string\">\"field_equal\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; data = response.json()<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; actual = data.get(assertion[<span class=\"code-snippet__string\">\"field\"<\/span>])<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; expected = assertion[<span class=\"code-snippet__string\">\"expected\"<\/span>]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; ok =&nbsp;<span class=\"code-snippet__built_in\">str<\/span>(actual) ==&nbsp;<span class=\"code-snippet__built_in\">str<\/span>(expected)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;ok,&nbsp;<span class=\"code-snippet__string\">f\"<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{assertion[<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'field'<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">]}<\/span><\/span><span class=\"code-snippet__string\">=<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{actual}<\/span><\/span><span class=\"code-snippet__string\">&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'=='<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">if<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;ok&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__keyword\">else<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">&nbsp;<\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\"><span class=\"code-snippet__string\">'!='<\/span><\/span><\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">}<\/span><\/span><span class=\"code-snippet__string\">&nbsp;<\/span><span class=\"code-snippet__string\"><span class=\"code-snippet__subst\">{expected}<\/span><\/span><span class=\"code-snippet__string\">\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;<span class=\"code-snippet__literal\">True<\/span>,&nbsp;<span class=\"code-snippet__string\">\"\"<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__keyword\">async<\/span>&nbsp;<span class=\"code-snippet__keyword\">def<\/span>&nbsp;<span class=\"code-snippet__title\">run_test<\/span>(<span class=\"code-snippet__params\">spec:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span><span class=\"code-snippet__params\">, endpoint:&nbsp;<\/span><span class=\"code-snippet__params\"><span class=\"code-snippet__built_in\">dict<\/span><\/span>) -&gt;&nbsp;<span class=\"code-snippet__built_in\">dict<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"\"\"\u6267\u884c\u5355\u4e2a\u63a5\u53e3\u6d4b\u8bd5\"\"\"<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; url = BASE_URL + endpoint[<span class=\"code-snippet__string\">\"path\"<\/span>]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; method = endpoint[<span class=\"code-snippet__string\">\"method\"<\/span>].lower()<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; start =&nbsp;<span class=\"code-snippet__built_in\">__import__<\/span>(<span class=\"code-snippet__string\">\"time\"<\/span>).time()<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; body =&nbsp;<span class=\"code-snippet__literal\">None<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; headers = {<span class=\"code-snippet__string\">\"Content-Type\"<\/span>:&nbsp;<span class=\"code-snippet__string\">\"application\/json\"<\/span>}<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">try<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">if<\/span>&nbsp;method ==&nbsp;<span class=\"code-snippet__string\">\"get\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resp = requests.get(url, headers=headers, timeout=<span class=\"code-snippet__number\">10<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;method ==&nbsp;<span class=\"code-snippet__string\">\"post\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resp = requests.post(url, json=body, headers=headers, timeout=<span class=\"code-snippet__number\">10<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;method ==&nbsp;<span class=\"code-snippet__string\">\"put\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resp = requests.put(url, json=body, headers=headers, timeout=<span class=\"code-snippet__number\">10<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">elif<\/span>&nbsp;method ==&nbsp;<span class=\"code-snippet__string\">\"delete\"<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resp = requests.delete(url, headers=headers, timeout=<span class=\"code-snippet__number\">10<\/span>)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">else<\/span>:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resp =&nbsp;<span class=\"code-snippet__literal\">None<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">except<\/span>&nbsp;Exception&nbsp;<span class=\"code-snippet__keyword\">as<\/span>&nbsp;e:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; elapsed =&nbsp;<span class=\"code-snippet__built_in\">__import__<\/span>(<span class=\"code-snippet__string\">\"time\"<\/span>).time() - start<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"name\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"summary\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"method\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"method\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"path\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"path\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"passed\"<\/span>:&nbsp;<span class=\"code-snippet__literal\">False<\/span>,<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"elapsed\"<\/span>:&nbsp;<span class=\"code-snippet__built_in\">round<\/span>(elapsed,&nbsp;<span class=\"code-snippet__number\">1<\/span>),<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"error\"<\/span>:&nbsp;<span class=\"code-snippet__built_in\">str<\/span>(e),<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"assertions\"<\/span>: []<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; }<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; elapsed =&nbsp;<span class=\"code-snippet__built_in\">__import__<\/span>(<span class=\"code-snippet__string\">\"time\"<\/span>).time() - start<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; assertion_results = []<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; all_passed =&nbsp;<span class=\"code-snippet__literal\">True<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">for<\/span>&nbsp;assert_str&nbsp;<span class=\"code-snippet__keyword\">in<\/span>&nbsp;endpoint.get(<span class=\"code-snippet__string\">\"assertions\"<\/span>, []):<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; assertion = parse_assertion(assert_str)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; ok, msg = check_assertion(resp, assertion)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; assertion_results.append({<span class=\"code-snippet__string\">\"mark\"<\/span>: assert_str,&nbsp;<span class=\"code-snippet__string\">\"passed\"<\/span>: ok,&nbsp;<span class=\"code-snippet__string\">\"msg\"<\/span>: msg})<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">if<\/span>&nbsp;<span class=\"code-snippet__keyword\">not<\/span>&nbsp;ok:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; all_passed =&nbsp;<span class=\"code-snippet__literal\">False<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__keyword\">return<\/span>&nbsp;{<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"name\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"summary\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"method\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"method\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"path\"<\/span>: endpoint[<span class=\"code-snippet__string\">\"path\"<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"status_code\"<\/span>: resp.status_code,<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"response_body\"<\/span>: resp.text[:<span class=\"code-snippet__number\">500<\/span>],<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"passed\"<\/span>: all_passed,<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"elapsed\"<\/span>:&nbsp;<span class=\"code-snippet__built_in\">round<\/span>(elapsed *&nbsp;<span class=\"code-snippet__number\">1000<\/span>),<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__string\">\"assertions\"<\/span>: assertion_results<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; }<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.6 \u8ba9 AI \u751f\u6210 report_generator.py\uff08\u539f\u65b9\u6848\u6700\u5bb9\u6613\u6f0f\u7684\u6587\u4ef6\uff09<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u8fd9\u4e2a\u6587\u4ef6\u88ab app.py \u8c03\u7528\uff0c\u4f46\u4e0a\u4e00\u7248\u65b9\u6848\u91cc\u6ca1\u7ed9\u4ee3\u7801\uff0c\u7f3a\u4e86\u5e73\u53f0\u5c31\u8dd1\u4e0d\u8d77\u6765\u3002\u7ed9 AI \u7684 Prompt\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"css\"><code><span leaf=\"\">\u8bf7\u7528 Python \u5199 report_generator<span class=\"code-snippet__selector-class\">.py<\/span>\uff0c\u51fd\u6570 generate_report(results, output_path)\uff1a<\/span><\/code><code><span leaf=\"\">&nbsp;<span class=\"code-snippet__number\">1<\/span>. results \u662f\u6d4b\u8bd5\u7ed3\u679c\u5217\u8868\uff0c\u6bcf\u9879\u542b name \/ method \/&nbsp;<span class=\"code-snippet__selector-tag\">path<\/span>&nbsp;\/ status_code \/ passed \/ elapsed \/ assertions<\/span><\/code><code><span leaf=\"\">&nbsp;<span class=\"code-snippet__number\">2<\/span>. \u751f\u6210\u4e00\u4e2a\u81ea\u5305\u542b\u7684&nbsp;<span class=\"code-snippet__selector-tag\">HTML<\/span>&nbsp;\u62a5\u544a\uff08CSS \u5185\u5d4c\u5728&nbsp;<span class=\"code-snippet__selector-tag\">HTML<\/span>&nbsp;\u91cc\uff0c\u4e0d\u4f9d\u8d56\u5916\u90e8\u6587\u4ef6\uff09<\/span><\/code><code><span leaf=\"\">&nbsp;<span class=\"code-snippet__number\">3<\/span>. \u62a5\u544a\u542b\uff1a\u9876\u90e8\u6c47\u603b\u5361\u7247\uff08\u901a\u8fc7\u7387\u3001\u901a\u8fc7\u6570\u3001\u5931\u8d25\u6570\uff09\u3001\u660e\u7ec6\u8868\u683c\uff08\u63a5\u53e3\/\u65b9\u6cd5\/\u72b6\u6001\/\u8017\u65f6\/\u65ad\u8a00\uff09<\/span><\/code><code><span leaf=\"\">&nbsp;<span class=\"code-snippet__number\">4<\/span>. \u5931\u8d25\u7528\u4f8b\u6807\u7ea2\uff0c\u5e76\u663e\u793a\u6bcf\u4e2a\u65ad\u8a00\u7684\u901a\u8fc7\u60c5\u51b5\u4e0e\u8bf4\u660e<\/span><\/code><code><span leaf=\"\">&nbsp;<span class=\"code-snippet__number\">5<\/span>. \u5b8c\u6574\u4ee3\u7801\uff0c\u542b\u4e2d\u6587\u6ce8\u91ca<\/span><\/code><\/pre>\n<\/section>\n<p><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 16px;\">AI \u751f\u6210\u7ed3\u679c\uff08HTML \u5b57\u7b26\u4e32\u5df2\u505a\u5b9e\u4f53\u8f6c\u4e49\uff0c\u590d\u5236\u5230\u6587\u4ef6\u5373\u53ef\u6b63\u5e38\u8fd0\u884c\uff09\uff1a<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"xml\"><code><span leaf=\"\"># report_generator.py \u2014 HTML \u62a5\u544a\u751f\u6210\u5668\uff08AI\u751f\u6210\uff09<\/span><\/code><code><span leaf=\"\">import html, datetime<\/span><\/code><code><span leaf=\"\">def generate_report(results: list, output_path: str):<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; \"\"\"\u751f\u6210\u81ea\u5305\u542b HTML \u6d4b\u8bd5\u62a5\u544a\"\"\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; total = len(results)<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; passed = sum(1 for r in results if r.get(\"passed\"))<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; rate = round(passed \/ total * 100) if total else 0<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; fail_list = [r for r in results if not r.get(\"passed\")]<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; rows = \"\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; for r in results:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; status = \"\u2713 PASS\" if r.get(\"passed\") else \"\u2717 FAIL\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; color = \"#16a34a\" if r.get(\"passed\") else \"#dc2626\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; asserts = \"<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">br<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\".join(<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; f\"{'\u2713' if a['passed'] else '\u2717'} {a['msg']}\" for a in r.get(\"assertions\", [])<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; )<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; rows += f\"\"\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tr<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"border-bottom:1px solid #f1f5f9;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:10px;font-family:monospace;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{html.escape(r.get('path',''))}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:10px;color:#059669;font-family:monospace;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{r.get('method','')}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:10px;font-weight:700;color:{color};\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{status}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:10px;color:#64748b;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{r.get('elapsed',0)} ms<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:10px;color:#64748b;font-size:13px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{asserts}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">td<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tr<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\"\"\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; html_doc = f\"\"\"<span class=\"code-snippet__meta\">&lt;!DOCTYPE&nbsp;<\/span><span class=\"code-snippet__meta\"><span class=\"code-snippet__keyword\">html<\/span><\/span><span class=\"code-snippet__meta\">&gt;<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">html<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">lang<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"zh-CN\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">head<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">meta<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">charset<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"UTF-8\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">title<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u63a5\u53e3\u6d4b\u8bd5\u62a5\u544a<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">title<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">head<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">body<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"font-family:-apple-system,sans-serif;max-width:900px;margin:0 auto;padding:32px;background:#f8fafc;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">h1<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"color:#1e293b;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\ud83d\udcca \u63a5\u53e3\u6d4b\u8bd5\u62a5\u544a<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">h1<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">p<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"color:#64748b;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u751f\u6210\u65f6\u95f4\uff1a{datetime.datetime.now():%Y-%m-%d %H:%M}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">p<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"display:flex;gap:16px;margin:20px 0;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"flex:1;background:#fff;border:2px solid #10b981;border-radius:12px;padding:16px;text-align:center;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"font-size:30px;font-weight:800;color:#10b981;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{rate}%<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"color:#475569;font-size:13px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u901a\u8fc7\u7387\uff08{passed}\/{total}\uff09<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"flex:1;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;text-align:center;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"font-size:30px;font-weight:800;color:#059669;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{passed}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"color:#475569;font-size:13px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u901a\u8fc7\u7528\u4f8b<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"flex:1;background:#fff;border:1px solid #ef4444;border-radius:12px;padding:16px;text-align:center;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"font-size:30px;font-weight:800;color:#ef4444;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{len(fail_list)}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"color:#475569;font-size:13px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u5931\u8d25\u7528\u4f8b<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">div<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">table<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">thead<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tr<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"background:#1e293b;color:#fff;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:11px;text-align:left;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u63a5\u53e3<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:11px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u65b9\u6cd5<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:11px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u72b6\u6001<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:11px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u8017\u65f6<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&nbsp;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__attr\">style<\/span><\/span><span class=\"code-snippet__tag\">=<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__string\">\"padding:11px;\"<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\u65ad\u8a00<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">th<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tr<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">thead<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tbody<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>{rows}<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">tbody<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\">&nbsp;&nbsp;<span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">table<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__tag\">&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">body<\/span><\/span><span class=\"code-snippet__tag\">&gt;&lt;\/<\/span><span class=\"code-snippet__tag\"><span class=\"code-snippet__name\">html<\/span><\/span><span class=\"code-snippet__tag\">&gt;<\/span>\"\"\"<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; with open(output_path, \"w\", encoding=\"utf-8\") as f:<\/span><\/code><code><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; f.write(html_doc)<\/span><\/code><\/pre>\n<\/section>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">5.7 \u628a\u4ee3\u7801\u90e8\u7f72\u5230 Ubuntu \u865a\u62df\u673a<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u56db\u4e2a .py \u6587\u4ef6\u751f\u6210\u540e\uff0c\u9700\u8981\u653e\u8fdb\u865a\u62df\u673a\u7684\u9879\u76ee\u76ee\u5f55\u3002\u4e09\u79cd\u843d\u5730\u65b9\u5f0f\uff0c\u6311\u987a\u624b\u7684\uff1a<\/span><\/p>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u65b9\u5f0f A\uff1a\u865a\u62df\u673a\u5185\u76f4\u63a5\u7c98\u8d34\uff08\u9002\u5408\u5c0f\u6587\u4ef6\uff09<\/span><\/h4>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"bash\"><code><span leaf=\"\"><span class=\"code-snippet__comment\"># \u5728 Ubuntu \u7ec8\u7aef\u8fdb\u5165\u9879\u76ee\u76ee\u5f55<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__built_in\">cd<\/span>&nbsp;~\/api-test-platform<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__comment\"># \u7528 nano \u521b\u5efa\u6587\u4ef6\uff0cCtrl+Shift+V \u7c98\u8d34 AI \u751f\u6210\u7684\u4ee3\u7801\uff0cCtrl+O \u4fdd\u5b58\uff0cCtrl+X \u9000\u51fa<\/span><\/span><\/code><code><span leaf=\"\">nano app.py<\/span><\/code><code><span leaf=\"\">nano swagger_parser.py<\/span><\/code><code><span leaf=\"\">nano test_runner.py<\/span><\/code><code><span leaf=\"\">nano report_generator.py<\/span><\/code><\/pre>\n<\/section>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u65b9\u5f0f B\uff1a\u4ece Windows \u7528 SCP \u4f20\uff08\u9002\u5408\u5df2\u5b58\u6210\u672c\u5730 .py \u6587\u4ef6\uff09<\/span><\/h4>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ruby\"><code><span leaf=\"\"><span class=\"code-snippet__comment\"># \u5728 Windows PowerShell \u91cc\u6267\u884c\uff08\u628a IP \u6362\u6210\u4f60\u7684\u865a\u62df\u673a IP\uff0cuser \u6362\u6210\u4f60\u7684\u7528\u6237\u540d\uff09<\/span><\/span><\/code><code><span leaf=\"\">scp app.py user<span class=\"code-snippet__variable\">@192<\/span>.<span class=\"code-snippet__number\">168.137<\/span>.<span class=\"code-snippet__number\">100<\/span><span class=\"code-snippet__symbol\">:~\/api-test-platform\/<\/span><\/span><\/code><code><span leaf=\"\">scp swagger_parser.py user<span class=\"code-snippet__variable\">@192<\/span>.<span class=\"code-snippet__number\">168.137<\/span>.<span class=\"code-snippet__number\">100<\/span><span class=\"code-snippet__symbol\">:~\/api-test-platform\/<\/span><\/span><\/code><code><span leaf=\"\">scp test_runner.py user<span class=\"code-snippet__variable\">@192<\/span>.<span class=\"code-snippet__number\">168.137<\/span>.<span class=\"code-snippet__number\">100<\/span><span class=\"code-snippet__symbol\">:~\/api-test-platform\/<\/span><\/span><\/code><code><span leaf=\"\">scp report_generator.py user<span class=\"code-snippet__variable\">@192<\/span>.<span class=\"code-snippet__number\">168.137<\/span>.<span class=\"code-snippet__number\">100<\/span><span class=\"code-snippet__symbol\">:~\/api-test-platform\/<\/span><\/span><\/code><\/pre>\n<\/section>\n<h4 style=\"box-sizing: border-box;margin: 20px 0px 8px;padding: 0px 0px 0px 12px;font-size: 15px;font-weight: 700;color: rgb(15, 118, 110);border-left: 3px solid rgb(20, 184, 166);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u65b9\u5f0f C\uff1aVirtualBox \u5171\u4eab\u6587\u4ef6\u5939\uff08\u62d6\u62fd\u5373\u53ef\uff09<\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5728 VirtualBox\u300c\u8bbe\u7f6e \u2192 \u5171\u4eab\u6587\u4ef6\u5939\u300d\u6dfb\u52a0\u4e00\u4e2a Windows \u76ee\u5f55\uff0c\u6302\u8f7d\u5230 Ubuntu \u7684&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">\/mnt\/shared<\/span><\/code><span leaf=\"\">\u3002\u628a\u56db\u4e2a .py \u62d6\u8fdb\u5171\u4eab\u76ee\u5f55\uff0c\u518d\u5728 Ubuntu \u91cc&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">cp \/mnt\/shared\/*.py ~\/api-test-platform\/<\/span><\/code><span leaf=\"\">&nbsp;\u5373\u53ef\u3002<\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\u2705<span textstyle=\"\" style=\"font-size: 15px;\">\u653e\u597d\u540e\uff0c\u5728 Ubuntu \u7ec8\u7aef\u6267\u884c&nbsp;<\/span><\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">ls ~\/api-test-platform<\/span><\/span><\/code><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\uff0c\u786e\u8ba4\u56db\u4e2a .py \u6587\u4ef6\u90fd\u5728\uff0c\u518d\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002<\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">5.8 \u5b89\u88c5\u4f9d\u8d56\u3001\u542f\u52a8\u4e0e\u672c\u5730\u8c03\u8bd5<\/span><\/h3>\n<ol style=\"box-sizing: border-box;margin: 10px 0px 14px;padding: 0px;counter-reset: step-counter 0;list-style: none;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">1. \u88c5\u4f9d\u8d56<\/span><\/strong><span leaf=\"\">\uff08\u5728 Ubuntu \u9879\u76ee\u76ee\u5f55\u91cc\uff09\uff1a<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">pip install fastapi uvicorn pyyaml requests jinja2<\/span><\/code><span leaf=\"\">\uff08\u5efa\u8bae\u5148&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">python3 -m venv venv &amp;&amp; source venv\/bin\/activate<\/span><\/code><span leaf=\"\">&nbsp;\u5efa\u865a\u62df\u73af\u5883\uff0c\u514d sudo\uff09<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">2. \u6539 BASE_URL<\/span><\/strong><span leaf=\"\">\uff1a\u7f16\u8f91&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">test_runner.py<\/span><\/code><span leaf=\"\">\uff0c\u628a&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">BASE_URL = \"https:\/\/api.example.com\"<\/span><\/code><span leaf=\"\">&nbsp;\u6539\u6210\u4f60\u771f\u5b9e\u8981\u6d4b\u7684 API \u5730\u5740<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">3. \u5efa\u76ee\u5f55<\/span><\/strong><span leaf=\"\">\uff1a<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">mkdir -p static\/reports uploads<\/span><\/code><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">4. \u524d\u53f0\u542f\u52a8\u8c03\u8bd5<\/span><\/strong><span leaf=\"\">\uff1a<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">uvicorn app:app --host 0.0.0.0 --port 8000 --reload<\/span><\/code><span leaf=\"\">\uff0c\u770b\u5230&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">Uvicorn running on http:\/\/0.0.0.0:8000<\/span><\/code><span leaf=\"\">&nbsp;\u5373\u6210\u529f<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">5. \u540e\u53f0\u5e38\u9a7b<\/span><\/strong><span leaf=\"\">\uff08\u5173\u7ec8\u7aef\u4e5f\u4e0d\u505c\uff09\uff1a<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">nohup uvicorn app:app --host 0.0.0.0 --port 8000 &gt; server.log 2&gt;&amp;1 &amp;<\/span><\/code><span leaf=\"\">\uff0c\u770b\u65e5\u5fd7\u7528&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">tail -f server.log<\/span><\/code><\/p>\n<\/li>\n<\/ol>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5728<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u5bbf\u4e3b\u673a Windows \u6d4f\u89c8\u5668<\/span><\/strong><span leaf=\"\">\u6253\u5f00&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">http:\/\/localhost:8000<\/span><\/code><span leaf=\"\">\uff08\u7aef\u53e3\u8f6c\u53d1\u751f\u6548\uff09\u6216&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">http:\/\/\u865a\u62df\u673aIP:8000<\/span><\/code><span leaf=\"\">\uff0c\u5c31\u80fd\u770b\u5230\u5e73\u53f0\u9875\u9762\uff0c\u4e0a\u4f20&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api_spec.yaml<\/span><\/code><span leaf=\"\">&nbsp;\u5f00\u59cb\u6d4b\u8bd5\u3002<\/span><\/p>\n<section style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;color: rgb(127, 29, 29);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/section>\n<section style=\"text-align: center;\"><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;color: rgb(127, 29, 29);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\ud83d\udc1e<span textstyle=\"\" style=\"font-weight: bold;\">\u672c\u5730\u90e8\u7f72\u5e38\u89c1\u6392\u9519\uff1a<\/span><\/span><\/span><\/section>\n<table style=\"box-sizing: border-box;margin: 16px 0px;padding: 0px;width: 656.464px;border-collapse: collapse;font-size: 14px;border-radius: 10px;overflow: hidden;box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 4px;color: rgb(127, 29, 29);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\">\n<thead>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(214, 168, 65);font-weight: normal;\">\u73b0\u8c61<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(214, 168, 65);font-weight: normal;\">\u539f\u56e0<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;color: rgb(214, 168, 65);font-weight: normal;\">\u89e3\u51b3\u529e\u6cd5<\/span><\/span><\/section>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u5bbf\u4e3b\u6d4f\u89c8\u5668\u6253\u4e0d\u5f00\u9875\u9762<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u7aef\u53e3\u8f6c\u53d1\u672a\u914d \/ uvicorn \u6ca1\u7ed1 0.0.0.0<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u68c0\u67e5\u865a\u62df\u673a\u7aef\u53e3\u8f6c\u53d1 8000\u21928000\uff1b\u542f\u52a8\u52a0&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">--host 0.0.0.0<\/span><\/code><span leaf=\"\">\uff1bUbuntu \u9632\u706b\u5899\u653e\u884c&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">sudo ufw allow 8000<\/span><\/code><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">ModuleNotFoundError<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u4f9d\u8d56\u6ca1\u88c5\u5168<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\"><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">pip install fastapi uvicorn pyyaml requests jinja2<\/span><\/code><\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u6d4b\u8bd5\u5168\u5931\u8d25 \/ \u8fde\u63a5\u62d2\u7edd<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">BASE_URL \u914d\u9519\u6216\u76ee\u6807 API \u4e0d\u53ef\u8fbe<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u5148\u7528&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">curl https:\/\/\u771f\u5b9eAPI\/health<\/span><\/code><span leaf=\"\">&nbsp;\u9a8c\u8bc1\u53ef\u8fbe\uff1b\u786e\u8ba4 BASE_URL \u4e0d\u542b\u591a\u4f59\u8def\u5f84<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">YAML \u89e3\u6790\u62a5\u9519<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">api_spec.yaml \u7f29\u8fdb\/\u683c\u5f0f\u9519<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u8ba9 AI \u91cd\u65b0\u751f\u6210\uff0c\u6216&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">python3 -c \"import yaml;yaml.safe_load(open('api_spec.yaml'))\"<\/span><\/code><span leaf=\"\">&nbsp;\u5355\u72ec\u9a8c\u8bc1<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u62a5\u544a\u6253\u4e0d\u5f00<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">static\/reports \u76ee\u5f55\u4e0d\u5b58\u5728<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;\"><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 12px;color: rgb(190, 18, 60);\"><span leaf=\"\">mkdir -p static\/reports<\/span><\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<section><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;color: rgb(20, 83, 45);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\ud83c\udf10<span textstyle=\"\" style=\"font-size: 15px;\">\u770b\u5230\u9996\u9875\u300c\ud83d\udd27 API \u6d4b\u8bd5\u5e73\u53f0\u300d\u4e0a\u4f20\u6846\uff0c\u5c31\u8bf4\u660e\u90e8\u7f72\u6210\u529f\u3002\u4e0b\u4e00\u6b65\u8fdb\u5165\u7b2c\u516d\u7ae0\uff0c\u628a Swagger \u6587\u6863\u5582\u8fdb\u53bb\u8dd1\u6d4b\u8bd5\u3002<\/span><\/span><\/span><\/section>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p data-pm-slice=\"0 0 []\"><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(180, 83, 9);border-radius: 20px;letter-spacing: 0.5px;\"><span leaf=\"\">\u7b2c\u516d\u7ae0<\/span><\/span><span leaf=\"\">&nbsp;<\/span><\/p>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;\"><span leaf=\"\">Step 4\uff1a\u8dd1\u901a\u7b2c\u4e00\u4e2a\u6d4b\u8bd5\u5e76\u8f93\u51fa\u62a5\u544a<\/span><\/h2>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">6.1 \u628a\u6587\u6863\u5582\u7ed9\u5e73\u53f0<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5c06\u7b2c\u56db\u7ae0AI\u751f\u6210\u7684&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">api_spec.yaml<\/span><\/code><span leaf=\"\">&nbsp;\u6587\u4ef6\u4e0a\u4f20\u5230\u5e73\u53f0\uff0c\u5e73\u53f0\u4f1a\u81ea\u52a8\u89e3\u6790YAML\uff0c\u63d0\u53d6\u6240\u6709\u63a5\u53e3\u5217\u8868\u3002<\/span><\/p>\n<p><span style=\"box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span leaf=\"\">\ud83d\udca1<span textstyle=\"\" style=\"font-size: 15px;font-weight: bold;\">\u6ce8\u610f\uff1a<\/span><\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"font-size: 15px;\">\u5728\u8fd0\u884c\u6d4b\u8bd5\u4e4b\u524d\uff0c\u9700\u8981\u628a&nbsp;<\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">test_runner.py<\/span><\/code><span leaf=\"\">&nbsp;<span textstyle=\"\" style=\"font-size: 15px;\">\u4e2d\u7684<\/span>&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">BASE_URL<\/span><\/code><span leaf=\"\">&nbsp;<span textstyle=\"\" style=\"font-size: 15px;\">\u6539\u4e3a\u4f60\u5b9e\u9645\u8981\u6d4b\u8bd5\u7684API\u5730\u5740\u3002\u4f8b\u5982\uff1a<\/span><\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">BASE_URL = \"https:\/\/api.xxx.com\"<\/span><\/code><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">6.2 \u6d4b\u8bd5\u6267\u884c\u8fc7\u7a0b<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u4e0a\u4f20\u6587\u6863\u540e\uff0c\u5e73\u53f0\u4f1a\uff1a<\/span><\/p>\n<ol style=\"box-sizing: border-box;margin: 10px 0px 14px;padding: 0px;counter-reset: step-counter 0;list-style: none;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">1. \u89e3\u6790\u63a5\u53e3\u5217\u8868<\/span><\/strong><span leaf=\"\">\uff1a\u4eceYAML\u4e2d\u63d0\u53d6\u6240\u6709 paths \u8282\u70b9\uff0c\u6bcf\u4e2a\u8282\u70b9\u4f5c\u4e3a\u4e00\u4e2a\u6d4b\u8bd5\u7528\u4f8b\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">2. \u6309\u987a\u5e8f\u53d1\u9001\u8bf7\u6c42<\/span><\/strong><span leaf=\"\">\uff1a\u6309\u6587\u6863\u5b9a\u4e49\u7684method\u548cURL\u7ec4\u88c5\u8bf7\u6c42\uff0c\u53d1\u9001HTTP\u8c03\u7528\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">3. \u6267\u884c\u65ad\u8a00\u6821\u9a8c<\/span><\/strong><span leaf=\"\">\uff1a\u4ecesummary\u672b\u5c3e\u63d0\u53d6&nbsp;<\/span><code style=\"box-sizing: border-box;margin: 0px;padding: 2px 6px;background: rgb(240, 241, 244);border-radius: 4px;font-family: SFMono-Regular, Consolas, monospace;font-size: 13px;color: rgb(190, 18, 60);\"><span leaf=\"\">[\u65ad\u8a00:xxx]<\/span><\/code><span leaf=\"\">&nbsp;\u6807\u8bb0\uff0c\u5bf9\u6bd4\u5b9e\u9645\u54cd\u5e94\uff1b<\/span><\/p>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 12px 0px;padding: 14px 16px;color: rgb(55, 65, 81);counter-increment: step-counter 1;display: flex;align-items: flex-start;gap: 14px;background: rgb(255, 255, 255);border: 1px solid rgb(229, 231, 235);border-radius: 10px;\">\n<p style=\"box-sizing: border-box;margin: 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">4. \u751f\u6210\u62a5\u544a<\/span><\/strong><span leaf=\"\">\uff1a\u6c47\u603b\u6240\u6709\u7528\u4f8b\u7ed3\u679c\uff0c\u8f93\u51faHTML\u6587\u4ef6\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"text-align: center;box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">\u6d4b\u8bd5\u62a5\u544a\u6837\u4f8b<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.5\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000552\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/BWmfcibGhS1IosSnUPbMRaFmD2Lia65pkTxq4VPYswcvpyOCyH0dwNcT41smhtEGica7IUFy5uMeibcpXv7XtLNvgkWGeAnK1BG6ZpWNTxwXFVw\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u6d4b\u8bd5\u62a5\u544a\u6837\u4f8b \uff1a\u901a\u8fc7\u7387\u3001\u8017\u65f6\u3001\u65ad\u8a00\u7ed3\u679c\u4e00\u76ee\u4e86\u7136<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">6.3 \u62a5\u544a\u89e3\u8bfb<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u62a5\u544a\u5305\u542b\u4e09\u4e2a\u5c42\u7ea7\uff1a<\/span><\/p>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u6c47\u603b\u533a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u901a\u8fc7\u7387\uff08\u901a\u8fc7\u6570\/\u603b\u6570\uff09\u3001\u603b\u8017\u65f6\u3001\u5931\u8d25\u7528\u4f8b\u6570\uff0c\u4e00\u773c\u5224\u65ad\u6574\u4f53\u8d28\u91cf\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u660e\u7ec6\u533a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff1a\u6bcf\u4e2a\u63a5\u53e3\u7684\u6267\u884c\u72b6\u6001\uff08\u2713\u901a\u8fc7\/\u2717\u5931\u8d25\uff09\u3001\u54cd\u5e94\u65f6\u95f4\u3001\u65ad\u8a00\u7ed3\u679c\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u8be6\u60c5\u533a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\uff08\u70b9\u51fb\u5931\u8d25\u7528\u4f8b\uff09\uff1a\u5b8c\u6574\u7684\u8bf7\u6c42\u53c2\u6570\u3001\u5b9e\u9645\u54cd\u5e94\u5185\u5bb9\u3001\u65ad\u8a00\u5931\u8d25\u539f\u56e0\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u5931\u8d25\u7528\u4f8b\u7684&#8221;\u8be6\u60c5&#8221;\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b9a\u4f4d\u95ee\u9898\uff1a\u5982\u679c\u72b6\u6001\u7801\u662f401\uff0c\u8bf4\u660e\u63a5\u53e3\u9274\u6743\u5931\u8d25\uff1b\u5982\u679c\u662f500\uff0c\u8bf4\u660e\u540e\u7aef\u62a5\u9519\u4e86\uff1b\u5982\u679c\u662f\u5b57\u6bb5\u4e0d\u5339\u914d\uff0c\u8bf4\u660e\u63a5\u53e3\u8fd4\u56de\u7684\u6570\u636e\u7ed3\u6784\u548c\u6587\u6863\u4e0d\u4e00\u81f4\u2014\u2014\u6bcf\u4e00\u79cd\u60c5\u51b5\u90fd\u6709\u5bf9\u5e94\u7684\u6392\u67e5\u65b9\u5411\u3002<\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p style=\"text-align: left;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<section><span style=\"box-sizing: border-box;margin: 0px 0px 10px;padding: 3px 10px;display: inline-block;font-size: 12px;font-weight: 700;color: rgb(255, 255, 255);background: rgb(29, 78, 216);border-radius: 20px;letter-spacing: 0.5px;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u7b2c\u4e03\u7ae0<\/span><\/span><span style=\"color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;\"><span leaf=\"\">&nbsp;<\/span><\/span><\/section>\n<h2 style=\"box-sizing: border-box;margin: 0px;padding: 0px 0px 12px;font-size: 22px;font-weight: 800;color: rgb(26, 26, 46);border-bottom: 3px solid rgb(79, 70, 229);display: inline-block;line-height: 1.35;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(248, 250, 252);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u7ef4\u62a4\u4e0e\u8fed\u4ee3<\/span><\/h2>\n<p style=\"text-align: left;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"text-align: center;box-sizing: border-box;margin: 1px 0px 0px;padding: 0px;font-size: 20px;flex-shrink: 0;\"><span textstyle=\"\" style=\"font-weight: bold;\">\u6301\u7eed\u7ef4\u62a4\uff1a\u63a5\u53e3\u53d8\u4e86\u5c31\u91cd\u8dd1\u95ed\u73af<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<section style=\"text-align: center;\" nodeleaf=\"\">\n<figure class=\"wx-qr-wrap\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.462037037037037\" data-s=\"300,640\" data-type=\"png\" data-w=\"1080\" type=\"block\" data-imgfileid=\"100000553\" data-aistatus=\"1\" src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/BWmfcibGhS1LwLKKlNdicyiaJWVG4NumWZEMMlZ9vMvXVYjf1ff3leaJXfJOF3YD8Dic0Xibicj9ha556U3ShLBmqgYxt4XPbKZEfc4TNCOEmQdNo\/640?wx_fmt=png&#038;from=appmsg\" \/><figcaption class=\"wx-qr-tip\"><img decoding=\"async\" src=\"https:\/\/www.deartester.com\/wp-content\/uploads\/2026\/09\/wechat-qr.jpg\" alt=\"\u5fae\u4fe1\u516c\u4f17\u53f7\u4e8c\u7ef4\u7801\" loading=\"lazy\"><span>\u56fe\u7247\u5f15\u81ea\u5fae\u4fe1\u516c\u4f17\u53f7\uff0c\u626b\u7801\u5173\u6ce8\u9605\u8bfb\u539f\u6587<\/span><\/figcaption><\/figure>\n<\/section>\n<p style=\"text-align: center;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u6301\u7eed\u7ef4\u62a4 \u2014 \u63a5\u53e3\u53d8\u4e86\u5c31\u91cd\u8dd1\u95ed\u73af\uff0c\u7ef4\u62a4\u6210\u672c\u6781\u4f4e<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">7.1 \u5f53\u63a5\u53e3\u53d1\u751f\u53d8\u5316\u65f6<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 2em;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u63a5\u53e3\u53d8\u66f4\u662f\u5e38\u6001\uff0c\u56de\u5f52\u6d4b\u8bd5\u7684\u6210\u672c\u51b3\u5b9a\u4e86\u56e2\u961f\u80fd\u5426\u6301\u7eed\u505a\u63a5\u53e3\u6d4b\u8bd5\u3002\u8fd9\u5957\u65b9\u6848\u7684\u6838\u5fc3\u4f18\u52bf\u5c31\u662f\uff1a<\/span><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u7ef4\u62a4\u6210\u672c\u6781\u4f4e\u3002<\/span><\/strong><\/p>\n<table style=\"box-sizing: border-box;margin: 16px 0px;padding: 0px;width: 860px;border-collapse: collapse;font-size: 14px;border-radius: 10px;overflow: hidden;box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 4px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\">\n<thead>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u53d8\u66f4\u7c7b\u578b<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u64cd\u4f5c\u6b65\u9aa4<\/span><\/span><\/section>\n<\/th>\n<th style=\"box-sizing: border-box;margin: 0px;padding: 11px 14px;background: rgb(30, 41, 59);color: rgb(255, 255, 255);text-align: left;font-weight: 700;font-size: 13px;\">\n<section style=\"text-align: center;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(214, 168, 65);\">\u9884\u8ba1\u8017\u65f6<\/span><\/span><\/section>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u63a5\u53e3\u5b57\u6bb5\u6539\u4e86<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u91cd\u65b0\u6355\u83b7 \u2192 AI\u91cd\u65b0\u751f\u6210\u6587\u6863 \u2192 \u4e0a\u4f20\u91cd\u8dd1<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">5\u201310\u5206\u949f<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u65b0\u589e\u4e86\u63a5\u53e3<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u91cd\u65b0\u6355\u83b7\uff08\u53ea\u8d70\u65b0\u6d41\u7a0b\uff09 \u2192 AI\u589e\u91cf\u751f\u6210 \u2192 \u5408\u5e76\u6587\u6863<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">5\u5206\u949f<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u4e0b\u67b6\u4e86\u63a5\u53e3<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">\u4eceYAML\u4e2d\u5220\u9664\u5bf9\u5e94path\u8282\u70b9\u5373\u53ef<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom: 1px solid rgb(241, 245, 249);color: rgb(55, 65, 81);vertical-align: top;\">\n<section><span leaf=\"\">1\u5206\u949f<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"box-sizing: border-box;margin: 0px;padding: 0px;\">\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u63a5\u53e3\u903b\u8f91\u53d8\u4e86\uff08\u53c2\u6570\u4e0d\u53d8\uff0c\u7ed3\u679c\u53d8\u4e86\uff09<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">\u66f4\u65b0summary\u4e2d\u7684\u65ad\u8a00\u6807\u8bb0 \u2192 \u91cd\u8dd1<\/span><\/section>\n<\/td>\n<td style=\"box-sizing: border-box;margin: 0px;padding: 10px 14px;border-bottom-width: medium;border-bottom-style: none;border-bottom-color: currentcolor;color: rgb(55, 65, 81);vertical-align: top;background: rgb(248, 250, 252);\">\n<section><span leaf=\"\">2\u5206\u949f<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">7.2 \u5982\u4f55\u6dfb\u52a0\/\u4fee\u6539\u65ad\u8a00<\/span><\/h3>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">\u65ad\u8a00\u4fe1\u606f\u5b58\u5728Swagger\u6587\u6863\u7684summary\u5b57\u6bb5\u91cc\uff0c\u76f4\u63a5\u4fee\u6539YAML\u5373\u53ef\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"ruby\"><code><span leaf=\"\"><span class=\"code-snippet__comment\"># \u539f\u6765<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__symbol\">summary:<\/span>&nbsp;\u7528\u6237\u767b\u5f55\u63a5\u53e3 [\u65ad\u8a00<span class=\"code-snippet__symbol\">:status=<\/span><span class=\"code-snippet__number\">200<\/span>] [\u65ad\u8a00<span class=\"code-snippet__symbol\">:code=<\/span><span class=\"code-snippet__number\">0<\/span>]<\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__comment\"># \u52a0\u4e0a\u65b0\u65ad\u8a00\uff1a\u767b\u5f55\u540etoken\u957f\u5ea6\u5e94\u5927\u4e8e20<\/span><\/span><\/code><code><span leaf=\"\"><span class=\"code-snippet__symbol\">summary:<\/span>&nbsp;\u7528\u6237\u767b\u5f55\u63a5\u53e3 [\u65ad\u8a00<span class=\"code-snippet__symbol\">:status=<\/span><span class=\"code-snippet__number\">200<\/span>] [\u65ad\u8a00<span class=\"code-snippet__symbol\">:code=<\/span><span class=\"code-snippet__number\">0<\/span>] [\u65ad\u8a00<span class=\"code-snippet__symbol\">:token<\/span>\u957f\u5ea6&gt;<span class=\"code-snippet__number\">20<\/span>]<\/span><\/code><\/pre>\n<\/section>\n<p style=\"box-sizing: border-box;margin: 12px 0px;padding: 0px;color: rgb(55, 65, 81);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" data-pm-slice=\"0 0 []\"><span leaf=\"\">\u5e73\u53f0\u5728\u89e3\u6790\u65f6\u4f1a\u81ea\u52a8\u8bc6\u522b\u65b0\u589e\u7684\u65ad\u8a00\u6807\u8bb0\uff0c\u4e0d\u9700\u8981\u6539\u4ee3\u7801\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;margin: 32px 0px 12px;padding: 0px 0px 0px 14px;font-size: 17px;font-weight: 700;color: rgb(30, 64, 175);border-left: 4px solid rgb(59, 130, 246);line-height: 1.4;font-family: -apple-system, sans-serif;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\"><span leaf=\"\">7.3 \u56e2\u961f\u843d\u5730\u5efa\u8bae<\/span><\/h3>\n<ul style=\"box-sizing: border-box;margin: 10px 0px 14px 22px;padding: 0px;color: rgb(26, 26, 46);font-family: -apple-system, sans-serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u6587\u6863\u96c6\u4e2d\u7ba1\u7406\uff1a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\u6240\u6709Swagger\u6587\u6863\u653e\u5728\u56e2\u961f\u5171\u4eab\u76d8\u6216Git\u4ed3\u5e93\uff0c\u6bcf\u6b21\u66f4\u65b0\u8bb0\u5f55\u7248\u672c\u53f7\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">Skill\u4fdd\u6301\u8fed\u4ee3\uff1a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\u5982\u679cAI\u751f\u6210\u7684\u6587\u6863\u6709\u683c\u5f0f\u95ee\u9898\uff0c\u66f4\u65b0SKILL.md\u7684\u7981\u6b62\u4e8b\u9879\u548c\u89c4\u8303\u8981\u6c42\uff0c\u4e0b\u4e00\u6b21\u751f\u6210\u5c31\u4f1a\u81ea\u52a8\u4fee\u6b63\uff1b<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin: 6px 0px;padding: 0px;color: rgb(55, 65, 81);\"><strong style=\"box-sizing: border-box;margin: 0px;padding: 0px;font-weight: 700;color: rgb(26, 26, 46);\"><span leaf=\"\">\u62a5\u544a\u5f52\u6863\uff1a<\/span><\/strong><br \/>\n<section><span leaf=\"\">\u6bcf\u6b21\u6d4b\u8bd5\u7684\u62a5\u544a\u6309\u65e5\u671f\u5f52\u6863\uff0c\u5f62\u6210\u5386\u53f2\u7248\u672c\u8bb0\u5f55\uff0c\u65b9\u4fbf\u56de\u6eaf\u95ee\u9898\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"576\">\n<h3 style=\"text-align: center;\" data-pm-slice=\"0 0 []\"><span leaf=\"\" style=\"color: rgba(0, 0, 0, 0.9);font-size: 17px;font-family: mp-quote, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 1.6;letter-spacing: 0.034em;font-style: normal;font-weight: normal;\">\ud83d\udccc&nbsp;<span textstyle=\"\" style=\"font-size: 16px;color: rgb(255, 41, 65);font-weight: bold;\">\u4e09\u4e2a\u6838\u5fc3\u8d44\u4ea7<\/span><\/span><\/h3>\n<ol class=\"list-paddingleft-1\">\n<li style=\"font-size:12px;color:#0052ff;\"><strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);font-weight: bold;\">Postman Interceptor<\/span><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);\">\uff1a\u628a&#8221;\u7528\u4e00\u904d\u4ea7\u54c1&#8221;\u53d8\u6210&#8221;\u6355\u83b7\u771f\u5b9e\u6d41\u91cf&#8221;\uff0c\u96f6\u95e8\u69db\u7684\u64cd\u4f5c\u66ff\u4ee3\u4e86\u624b\u52a8\u5199\u6d4b\u8bd5\u7528\u4f8b\u3002<\/span><\/span><\/strong><\/li>\n<li style=\"font-size:12px;color:#0052ff;\"><strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);font-weight: bold;\">Swagger\u751f\u6210Skill<\/span><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);\">\uff1a\u628a&#8221;\u4e13\u4e1a\u6587\u6863\u5199\u4f5c&#8221;\u53d8\u6210&#8221;AI\u81ea\u52a8\u63a8\u65ad&#8221;\uff0c\u53ea\u9700\u8981\u7ea6\u5b9a\u683c\u5f0f\uff0cAI\u8d1f\u8d23\u586b\u5145\u5185\u5bb9\u3002<\/span><\/span><\/strong><\/li>\n<li style=\"font-size:12px;color:#0052ff;\"><strong><span leaf=\"\" style=\"color:rgba(0, 0, 0, 0.9);font-size:17px;font-family:&quot;mp-quote&quot;, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height:1.6;letter-spacing:0.034em;font-style:normal;font-weight:normal;\"><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);font-weight: bold;\">\u8f7b\u91cf\u6d4b\u8bd5\u5e73\u53f0<\/span><span textstyle=\"\" style=\"font-size: 12px;color: rgb(0, 82, 255);\">\uff1a\u628a&#8221;\u4ee3\u7801\u7ea7\u65ad\u8a00&#8221;\u53d8\u6210&#8221;\u6587\u6863\u7ea7\u6807\u8bb0&#8221;\uff0c\u4efb\u4f55\u4eba\u4e0a\u4f20\u6587\u6863\u5c31\u80fd\u6267\u884c\u4e13\u4e1a\u6d4b\u8bd5\u3002<\/span><\/span><\/strong><\/li>\n<\/ol>\n<p style=\"text-indent: 2em;\"><span leaf=\"\" style=\"color: rgba(0, 0, 0, 0.9);font-size: 17px;font-family: mp-quote, &quot;PingFang SC&quot;, system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;line-height: 1.6;letter-spacing: 0.034em;font-style: normal;font-weight: normal;\"><span textstyle=\"\" style=\"font-size: 12px;\">\u8fd9\u5957\u65b9\u6848\u7684\u672c\u8d28\uff0c\u662f\u628a\u63a5\u53e3\u6d4b\u8bd5\u7684\u4e13\u4e1a\u77e5\u8bc6\u5c01\u88c5\u8fdb\u4e09\u4ef6\u5de5\u5177\u91cc\uff0c\u8ba9\u6ca1\u6709\u6d4b\u8bd5\u80cc\u666f\u7684\u4eba\u4e5f\u80fd\u505a\u4e13\u4e1a\u7684\u4e8b\u3002\u4e0b\u6b21\u6709\u4eba\u8bf4&#8221;\u5e2e\u6211\u6d4b\u4e00\u4e0b\u8fd9\u4e2a\u63a5\u53e3&#8221;\uff0c\u4f60\u53ef\u4ee5\u81ea\u4fe1\u5730\u8bf4\uff1a&#8221;\u7ed9\u6211\u4e00\u5206\u949f\u6293\u4e2a\u5305\u3002&#8221;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: left;\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span data-pm-slice=\"0 0 []\"><span style=\"color: rgb(156, 163, 175);font-family: -apple-system, sans-serif;font-size: 13px;font-style: italic;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;float: none;display: inline !important;\" data-pm-slice=\"0 0 []\"><span leaf=\"\"><br  \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u674e\u662f\u67d0\u7535\u5546\u516c\u53f8\u7684\u8fd0\u8425\uff0c\u6709\u4e00\u5929\u4ea7\u54c1\u7ecf\u7406\u627e\u5230\u4ed6\uff1a&#8221;\u540e\u53f0\u6539\u7248\u4e86\uff0c\u4f60\u8d1f\u8d23\u8dd1\u4e00\u904d\u6838\u5fc3\u6d41\u7a0b\u56de\u5f52\u6d4b\u8bd5\uff0c\u4e0b\u5468\u4e00\u7ed9 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":1,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":206,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/posts\/109\/revisions\/206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/media\/108"}],"wp:attachment":[{"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deartester.com\/index.php\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}