{"id":142,"date":"2024-03-17T13:02:21","date_gmt":"2024-03-17T05:02:21","guid":{"rendered":"http:\/\/47.108.179.73\/?p=142"},"modified":"2024-03-17T13:02:21","modified_gmt":"2024-03-17T05:02:21","slug":"%e8%87%aa%e5%ae%9a%e4%b9%89%e9%9a%8f%e6%9c%ba%e5%9b%beapi","status":"publish","type":"post","link":"https:\/\/loyeh.top\/index.php\/2024\/03\/17\/%e8%87%aa%e5%ae%9a%e4%b9%89%e9%9a%8f%e6%9c%ba%e5%9b%beapi\/","title":{"rendered":"\u81ea\u5b9a\u4e49\u968f\u673a\u56feAPI"},"content":{"rendered":"\n<p>Sakurairo\u4e3b\u9898\u867d\u7136\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5c01\u9762api\uff0c\u4f46\u662f\u5982\u679c\u60f3\u8981\u5c06\u81ea\u5df1\u559c\u6b22\u7684\u591a\u5f20\u80cc\u666f\u56fe\u7528\u4f5c\u5c01\u9762\u7684\u8bdd\uff0c\u7b2c\u4e00\u79cd\u53ef\u4ee5\u5c06\u80cc\u666f\u56fe\u653e\u5728\u672c\u5730\uff0c\u8fd9\u6837\u7684\u8bdd\u4f1a\u964d\u4f4e\u7f51\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\uff0c\u7b2c\u4e8c\u79cd\u5c31\u662f\u53ef\u4ee5\u81ea\u5df1\u505a\u4e00\u4e2a\u5bf9\u8c61\u5b58\u50a8api\uff0c\u8fd9\u6837\u6bcf\u6b21\u8c03\u7528\u5c31\u8fd4\u56de\u4e00\u4e2a\u5c01\u9762\u5730\u5740\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u65b0\u5efa\u4e00\u4e2aimg.php\uff0c\u653e\u5728\u670d\u52a1\u5668\u57df\u540d\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><table class=\"hljs-ln\" style=\"border-collapse: collapse; border-spacing: 0px; width: 816.016px; border-radius: 5px; color: rgb(255, 255, 255); font-family: &quot;Noto Serif SC&quot;, &quot;Source Han Serif SC&quot;, &quot;Source Han Serif&quot;, &quot;PT Serif&quot;, &quot;SongTi SC&quot;, &quot;MicroSoft Yahei&quot;, Georgia, serif; font-size: 18.75px; text-wrap: nowrap; margin: 6px 0px 0px !important;\"><tbody style=\"box-sizing: border-box;\"><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"1\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"1\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"1\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-meta\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">&lt;?php<\/span><\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"2\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"2\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"2\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-comment\" style=\"box-sizing: border-box; color: rgb(136, 143, 150); font-style: italic;\">\/\/\u56fe\u7247\u94fe\u63a5\u7684\u6587\u4ef6\u540dimg.txt<\/span><\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"3\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"3\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"3\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$filename<\/span> = <span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">\"img.txt\"<\/span>;<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"4\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"4\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"4\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">if<\/span>(!<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">file_exists<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$filename<\/span>)){<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"5\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"5\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"5\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">die<\/span>(<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">'\u6587\u4ef6\u4e0d\u5b58\u5728'<\/span>);<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"6\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"6\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"6\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">}<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"7\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"7\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"7\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-comment\" style=\"box-sizing: border-box; color: rgb(136, 143, 150); font-style: italic;\">\/\/\u4ece\u6587\u672c\u83b7\u53d6\u94fe\u63a5<\/span><\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"8\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"8\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"8\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pics<\/span> = &#91;];<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"9\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"9\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"9\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$fs<\/span> = <span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">fopen<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$filename<\/span>, <span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">\"r\"<\/span>);<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"10\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"10\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"10\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">while<\/span>(!<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">feof<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$fs<\/span>)){<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"11\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"11\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"11\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$line<\/span>=<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">trim<\/span>(<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">fgets<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$fs<\/span>));<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"12\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"12\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"12\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">if<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$line<\/span>!=<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">''<\/span>){<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"13\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"13\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"13\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">        <span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">array_push<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pics<\/span>, <span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$line<\/span>);<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"14\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"14\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"14\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    }<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"15\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"15\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"15\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">} <\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"16\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"16\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"16\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-comment\" style=\"box-sizing: border-box; color: rgb(136, 143, 150); font-style: italic;\">\/\/\u4ece\u6570\u7ec4\u968f\u673a\u83b7\u53d6\u94fe\u63a5<\/span><\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"17\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"17\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"17\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pic<\/span> = <span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pics<\/span>&#91;<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">array_rand<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pics<\/span>)]; <\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"18\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"18\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"18\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-comment\" style=\"box-sizing: border-box; color: rgb(136, 143, 150); font-style: italic;\">\/\/\u8fd4\u56de\u6307\u5b9a\u683c\u5f0f<\/span><\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"19\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"19\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"19\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$type<\/span>=<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$_GET<\/span>&#91;<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">'type'<\/span>];<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"20\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"20\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"20\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">switch<\/span>(<span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$type<\/span>){<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"21\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"21\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"21\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-comment\" style=\"box-sizing: border-box; color: rgb(136, 143, 150); font-style: italic;\">\/\/JSON\u8fd4\u56de<\/span><\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"22\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"22\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"22\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">case<\/span> <span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">'json'<\/span>:<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"23\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"23\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"23\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">header<\/span>(<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">'Content-type:text\/json'<\/span>);<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"24\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"24\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"24\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">die<\/span>(<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">json_encode<\/span>(&#91;<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">'pic'<\/span>=><span class=\"hljs-variable\" style=\"box-sizing: border-box; color: rgb(209, 154, 102);\">$pic<\/span>]));<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"25\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"25\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"25\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">default<\/span>:<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"26\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"26\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"26\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">    <span class=\"hljs-keyword\" style=\"box-sizing: border-box; color: rgb(198, 120, 221);\">die<\/span>(<span class=\"hljs-title function_ invoke__\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">header<\/span>(<span class=\"hljs-string\" style=\"box-sizing: border-box; color: rgb(152, 195, 121);\">\"Location: <span class=\"hljs-subst\" style=\"box-sizing: border-box; color: rgb(224, 108, 117);\">$pic<\/span>\"<\/span>));<\/td><\/tr><tr style=\"box-sizing: border-box;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"27\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"27\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"27\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\">}<\/td><\/tr><tr style=\"box-sizing: border-box; background-color: transparent;\"><td class=\"hljs-ln-line hljs-ln-numbers\" data-line-number=\"28\" style=\"box-sizing: border-box; padding: 0px; user-select: none; text-align: center; color: rgb(136, 143, 150); background: rgb(29, 31, 33); font-family: &quot;Noto Sans SC&quot;, monospace, Helvetica, Tahoma, Arial, STXihei, &quot;STHeiti Light&quot;, &quot;Microsoft YaHei&quot;, sans-serif; vertical-align: top; position: absolute; left: 0px; width: 30px;\"><div class=\"hljs-ln-n\" data-line-number=\"28\" style=\"box-sizing: border-box;\"><\/div><\/td><td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"28\" style=\"box-sizing: border-box; padding: 0px 0px 0px 30px; margin-left: 25px;\"><span class=\"hljs-meta\" style=\"box-sizing: border-box; color: rgb(97, 174, 238);\">?><\/span><\/td><\/tr><\/tbody><\/table><\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u65b0\u5efa\u4e00\u4e2aimg.txt\u6587\u4ef6\uff0c\u540c\u6837\u4e5f\u5b58\u653e\u5728\u670d\u52a1\u5668\u57df\u540d\u4e0b\u5373\u53ef<br>txt\u4e2d\u5b58\u653e\u56fe\u7247\u94fe\u63a5\u5373\u53ef\uff0c\u8fd9\u91cc\u53ef\u4ee5\u901a\u8fc7\u53c8\u62cd\u4e91\u4e91\u5b58\u50a8\u4f5c\u4e3a\u56fe\u5e8a\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8d58\u8ff0\u4e86\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u8c03\u7528\u5c01\u9762api\u5373\u53ef\uff0capi\u94fe\u63a5\u683c\u5f0f\u4e3a\uff1a<a href=\"https:\/\/xn--6qqv7i2xdt95b\/img.php\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >https:\/\/\u4f60\u7684\u57df\u540d\/img.php<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<p><a href=\"https:\/\/rainxblog.top\/theme\/559\/\" target=\"_blank\"  rel=\"nofollow\" >[Sakurairo] - \u4e3b\u9898\u81ea\u5b9a\u4e49\u7f8e\u5316\u7cfb\u5217\u4e09 - Rainx's Blog (rainxblog.top)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sakurairo\u4e3b\u9898\u867d\u7136\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5c01\u9762api\uff0c\u4f46\u662f\u5982\u679c\u60f3\u8981\u5c06\u81ea\u5df1\u559c\u6b22\u7684\u591a\u5f20\u80cc\u666f\u56fe\u7528\u4f5c\u5c01\u9762\u7684\u8bdd\uff0c\u7b2c\u4e00\u79cd\u53ef\u4ee5\u5c06\u80cc\u666f\u56fe\u653e\u5728\u672c\u5730\uff0c\u8fd9\u6837\u7684 &#8230;<\/p>","protected":false},"author":1,"featured_media":132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-other"],"jetpack_featured_media_url":"https:\/\/loyeh.top\/wp-content\/uploads\/2024\/03\/1710592563-3ly1x6.jpg","_links":{"self":[{"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":1,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions\/143"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/media\/132"}],"wp:attachment":[{"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/loyeh.top\/index.php\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}