{"id":28838,"date":"2024-08-31T22:57:00","date_gmt":"2024-08-31T14:57:00","guid":{"rendered":"https:\/\/0592ban.cn\/?p=28838"},"modified":"2024-08-31T22:57:00","modified_gmt":"2024-08-31T14:57:00","slug":"%e6%88%911988%e5%b9%b4%e7%9a%84-%e6%88%91%e9%98%b3%e5%8e%86%e6%98%af%e5%a4%9a%e5%b0%91%e7%9a%84-%e7%94%9f%e6%97%a5%e6%98%af%e5%86%9c%e5%8e%86%e7%9a%847%e6%9c%8828-%e6%98%af%e5%b1%9e%e4%ba%8e%e4%bb%80","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/08\/31\/%e6%88%911988%e5%b9%b4%e7%9a%84-%e6%88%91%e9%98%b3%e5%8e%86%e6%98%af%e5%a4%9a%e5%b0%91%e7%9a%84-%e7%94%9f%e6%97%a5%e6%98%af%e5%86%9c%e5%8e%86%e7%9a%847%e6%9c%8828-%e6%98%af%e5%b1%9e%e4%ba%8e%e4%bb%80\/","title":{"rendered":"\u62111988\u5e74\u7684 \u6211\u9633\u5386\u662f\u591a\u5c11\u7684 \u751f\u65e5\u662f\u519c\u5386\u76847\u670828 \u662f\u5c5e\u4e8e\u4ec0\u4e48\u661f\u5ea7\u7684 (\u62111988\u5e74\u53c2\u52a0\u5de5\u4f5c\u7684\u5de5\u9f84)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u62111988\u5e74\u53c2\u52a0\u5de5\u4f5c\u7684\u5de5\u9f84\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/08\/83ef9f30-7150-4e56-81b7-185800d7efa0.jpg\"\/><\/p>\n<p>\n \u8f93\u5165\u4f60\u7684\u51fa\u751f\u65e5\u671f\uff08\u516c\u5386\uff0c\u9633\u5386\uff09\uff0c\u5373\u53ef\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\u3002\n<\/p>\n<form action=\"index.php\" method=\"get\">\n <label for=\"year\"><br \/>\n  \u51fa\u751f\u5e74\u4efd\uff1a<br \/>\n <\/label><br \/>\n <input id=\"year\" name=\"year\" type=\"text\"\/><br \/>\n <br \/>\n <label for=\"month\"><br \/>\n  \u51fa\u751f\u6708\u4efd\uff1a<br \/>\n <\/label><br \/>\n <input id=\"month\" name=\"month\" type=\"text\"\/><br \/>\n <br \/>\n <label for=\"day\"><br \/>\n  \u51fa\u751f\u65e5\u671f\uff1a<br \/>\n <\/label><br \/>\n <input id=\"day\" name=\"day\" type=\"text\"\/><br \/>\n <br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<p><!--?php\nif (isset($_GET['year']) && isset($_GET['month']) && isset($_GET['day'])) {\n  $year = $_GET['year'];\n  $month = $_GET['month'];\n  $day = $_GET['day'];\n\n  \/\/ \u8ba1\u7b97\u661f\u5ea7\n  $date = \"$year-$month-$day\";\n  $timestamp = strtotime($date);\n  if ($timestamp === false) {\n    echo \"<p-->\n\u8f93\u5165\u7684\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e\u3002<br \/>\n&#8220;;<br \/>\n  } else {<br \/>\n    $zodiac = &#8221;;<br \/>\n    $zodiacs = [<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;03-21&#8242;, &#8216;end&#8217; =&gt; &#8217;04-19&#8242;, &#8216;name&#8217; =&gt; &#8216;\u767d\u7f8a\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;04-20&#8242;, &#8216;end&#8217; =&gt; &#8217;05-20&#8242;, &#8216;name&#8217; =&gt; &#8216;\u91d1\u725b\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;05-21&#8242;, &#8216;end&#8217; =&gt; &#8217;06-20&#8242;, &#8216;name&#8217; =&gt; &#8216;\u53cc\u5b50\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;06-21&#8242;, &#8216;end&#8217; =&gt; &#8217;07-22&#8242;, &#8216;name&#8217; =&gt; &#8216;\u5de8\u87f9\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;07-23&#8242;, &#8216;end&#8217; =&gt; &#8217;08-22&#8242;, &#8216;name&#8217; =&gt; &#8216;\u72ee\u5b50\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;08-23&#8242;, &#8216;end&#8217; =&gt; &#8217;09-22&#8242;, &#8216;name&#8217; =&gt; &#8216;\u5904\u5973\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;09-23&#8242;, &#8216;end&#8217; =&gt; &#8217;10-22&#8242;, &#8216;name&#8217; =&gt; &#8216;\u5929\u79e4\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;10-23&#8242;, &#8216;end&#8217; =&gt; &#8217;11-21&#8242;, &#8216;name&#8217; =&gt; &#8216;\u5929\u874e\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;11-22&#8242;, &#8216;end&#8217; =&gt; &#8217;12-21&#8242;, &#8216;name&#8217; =&gt; &#8216;\u5c04\u624b\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;12-22&#8242;, &#8216;end&#8217; =&gt; &#8217;01-19&#8242;, &#8216;name&#8217; =&gt; &#8216;\u6469\u7faf\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;01-20&#8242;, &#8216;end&#8217; =&gt; &#8217;02-18&#8242;, &#8216;name&#8217; =&gt; &#8216;\u6c34\u74f6\u5ea7&#8217;],<br \/>\n      [&#8216;start&#8217; =&gt; &#8217;02-19&#8242;, &#8216;end&#8217; =&gt; &#8217;03-20&#8242;, &#8216;name&#8217; =&gt; &#8216;\u53cc\u9c7c\u5ea7&#8217;],<br \/>\n    ];<br \/>\n    foreach ($zodiacs as $zodiacInfo) {<br \/>\n      if ($timestamp &gt;= strtotime($zodiacInfo[&#8216;start&#8217;]) &amp;&amp; $timestamp &lt;= strtotime($zodiacInfo[&#8216;end&#8217;])) {<br \/>\n        $zodiac = $zodiacInfo[&#8216;name&#8217;];<br \/>\n        break;<br \/>\n      }<br \/>\n    }<\/p>\n<p>    if ($zodiac !== &#8221;) {<br \/>\n      echo &#8221;<\/p>\n<p>\n \u4f60\u7684\u661f\u5ea7\u662f\uff1a$zodiac\n<\/p>\n<p>&#8220;;<br \/>\n    } else {<br \/>\n      echo &#8221;<\/p>\n<p>\n \u4f60\u7684\u51fa\u751f\u65e5\u671f\u4e0d\u5728\u4efb\u4f55\u661f\u5ea7\u7684\u8303\u56f4\u5185\u3002\n<\/p>\n<p>&#8220;;<br \/>\n    }<br \/>\n  }<br \/>\n}<br \/>\n?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f93\u5165\u4f60\u7684\u51fa\u751f\u65e5\u671f\uff0c\u516c\u5386\uff0c\u9633\u5386\uff0c\uff0c\u5373\u53ef\u67e5\u8be2\u4f60\u7684\u661f\u5ea7\uff0c\u51fa\u751f\u5e74\u4efd\uff0c\u51fa\u751f\u6708\u4efd\uff0c\u51fa\u751f\u65e5\u671f\uff0c\u8f93\u5165\u7684\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e\uff0celse\uff0c$zodiac=\uff0c$zodiacs=[[start=&#038;gt\uff0c03\uff0c21\uff0cend=&#038;gt\uff0c04\uff0c19\uff0cname=&#038;gt\uff0c\u767d\u7f8a\u5ea7]\uff0c[start=&#038;gt\uff0c04\uff0c20\uff0cend=&#038;gt\uff0c05\uff0c20\uff0cname=&#038;gt\uff0c\u91d1\u725b\u5ea7]\uff0c[&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":28837,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12135,12134,12137,12136],"class_list":["post-28838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-12135","tag-12134","tag-12137","tag-12136"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/comments?post=28838"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28838\/revisions"}],"predecessor-version":[{"id":28839,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/28838\/revisions\/28839"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/28837"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=28838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=28838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=28838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}