{"id":2124,"date":"2024-05-30T20:19:31","date_gmt":"2024-05-30T12:19:31","guid":{"rendered":"https:\/\/0592ban.cn\/?p=2124"},"modified":"2024-05-30T20:19:31","modified_gmt":"2024-05-30T12:19:31","slug":"1990%e5%b9%b4%e5%86%9c%e5%8e%865%e6%9c%8825%e6%97%a5%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b4%e5%86%9c%e5%8e%86%e9%98%b3%e5%8e%86%e8%a1%a8%e6%9f%a5%e8%af%a2","status":"publish","type":"post","link":"https:\/\/0592ban.cn\/index.php\/2024\/05\/30\/1990%e5%b9%b4%e5%86%9c%e5%8e%865%e6%9c%8825%e6%97%a5%e5%87%ba%e7%94%9f%e6%98%af%e4%bb%80%e4%b9%88%e6%98%9f%e5%ba%a7-1990%e5%b9%b4%e5%86%9c%e5%8e%86%e9%98%b3%e5%8e%86%e8%a1%a8%e6%9f%a5%e8%af%a2\/","title":{"rendered":"1990\u5e74\u519c\u53865\u670825\u65e5\u51fa\u751f\u662f\u4ec0\u4e48\u661f\u5ea7 (1990\u5e74\u519c\u5386\u9633\u5386\u8868\u67e5\u8be2)"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"1990\u5e74\u519c\u5386\u9633\u5386\u8868\u67e5\u8be2\" loading=\"lazy\" src=\"https:\/\/0592ban.cn\/wp-content\/uploads\/2024\/05\/642a39ff-afff-48df-9691-46a40f929a87.jpg\"\/><\/p>\n<p>\n \u661f\u5ea7\u662f\u6839\u636e\u9633\u5386\u5212\u5206\u7684\u3002\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e2a\u67e5\u8be2\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u8f93\u5165\u60a8\u7684\u51fa\u751f\u65e5\u671f\uff0c\u67e5\u8be2\u5bf9\u5e94\u7684\u661f\u5ea7\u3002\n<\/p>\n<form action=\"query.php\" method=\"post\">\n \u51fa\u751f\u65e5\u671f\uff1a<br \/>\n <input name=\"birthdate\" type=\"text\"\/><br \/>\n <input type=\"submit\" value=\"\u67e5\u8be2\"\/><br \/>\n<\/form>\n<h2>\n \u67e5\u8be2\u7ed3\u679c<br \/>\n<\/h2>\n<p><!--?php\n  if (isset($_POST['birthdate'])) {\n    $birthdate = $_POST['birthdate'];\n\n    \/\/ \u5c06\u51fa\u751f\u65e5\u671f\u8f6c\u6362\u4e3a\u9633\u5386\n    $solar_birthdate = date('Y-m-d', strtotime($birthdate));\n\n    \/\/ \u6839\u636e\u9633\u5386\u51fa\u751f\u65e5\u671f\u67e5\u8be2\u661f\u5ea7\n    $constellation = getConstellation($solar_birthdate);\n\n    echo '<p-->\n\u60a8\u7684\u661f\u5ea7\u662f\uff1a&#8217; . $constellation .&#8217;<br \/>\n&#8216;;<br \/>\n  }<\/p>\n<p>  function getConstellation($birthdate)<br \/>\n  {<br \/>\n    $month = substr($birthdate, 5, 2);<br \/>\n    $day = substr($birthdate, 8, 2);<\/p>\n<p>    $constellations = array(<br \/>\n      &#8217;01&#8217; =&gt; array(<br \/>\n        &#8217;20&#8217; =&gt; &#8216;\u6c34\u74f6\u5ea7&#8217;,<br \/>\n        &#8217;19&#8217; =&gt; &#8216;\u6469\u7faf\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;02&#8217; =&gt; array(<br \/>\n        &#8217;18&#8217; =&gt; &#8216;\u6c34\u74f6\u5ea7&#8217;,<br \/>\n        &#8217;19&#8217; =&gt; &#8216;\u53cc\u9c7c\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;03&#8217; =&gt; array(<br \/>\n        &#8217;20&#8217; =&gt; &#8216;\u53cc\u9c7c\u5ea7&#8217;,<br \/>\n        &#8217;21&#8217; =&gt; &#8216;\u767d\u7f8a\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;04&#8217; =&gt; array(<br \/>\n        &#8217;19&#8217; =&gt; &#8216;\u767d\u7f8a\u5ea7&#8217;,<br \/>\n        &#8217;20&#8217; =&gt; &#8216;\u91d1\u725b\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;05&#8217; =&gt; array(<br \/>\n        &#8217;20&#8217; =&gt; &#8216;\u91d1\u725b\u5ea7&#8217;,<br \/>\n        &#8217;21&#8217; =&gt; &#8216;\u53cc\u5b50\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;06&#8217; =&gt; array(<br \/>\n        &#8217;21&#8217; =&gt; &#8216;\u53cc\u5b50\u5ea7&#8217;,<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u5de8\u87f9\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;07&#8217; =&gt; array(<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u5de8\u87f9\u5ea7&#8217;,<br \/>\n        &#8217;23&#8217; =&gt; &#8216;\u72ee\u5b50\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;08&#8217; =&gt; array(<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u72ee\u5b50\u5ea7&#8217;,<br \/>\n        &#8217;23&#8217; =&gt; &#8216;\u5904\u5973\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;09&#8217; =&gt; array(<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u5904\u5973\u5ea7&#8217;,<br \/>\n        &#8217;23&#8217; =&gt; &#8216;\u5929\u79e4\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;10&#8217; =&gt; array(<br \/>\n        &#8217;23&#8217; =&gt; &#8216;\u5929\u79e4\u5ea7&#8217;,<br \/>\n        &#8217;24&#8217; =&gt; &#8216;\u5929\u874e\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;11&#8217; =&gt; array(<br \/>\n        &#8217;21&#8217; =&gt; &#8216;\u5929\u874e\u5ea7&#8217;,<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u5c04\u624b\u5ea7&#8217;,<br \/>\n      ),<br \/>\n      &#8217;12&#8217; =&gt; array(<br \/>\n        &#8217;21&#8217; =&gt; &#8216;\u5c04\u624b\u5ea7&#8217;,<br \/>\n        &#8217;22&#8217; =&gt; &#8216;\u6469\u7faf\u5ea7&#8217;,<br \/>\n      ),<br \/>\n    );<\/p>\n<p>    return $constellations[$month][$day];<br \/>\n  }<br \/>\n  ?&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u661f\u5ea7\u662f\u6839\u636e\u9633\u5386\u5212\u5206\u7684\uff0c\u4e0b\u9762\u63d0\u4f9b\u4e00\u4e2a\u67e5\u8be2\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u8f93\u5165\u60a8\u7684\u51fa\u751f\u65e5\u671f\uff0c\u67e5\u8be2\u5bf9\u5e94\u7684\u661f\u5ea7\uff0c\u51fa\u751f\u65e5\u671f\uff0c\u67e5\u8be2\u7ed3\u679c\u60a8\u7684\u661f\u5ea7\u662f\uff0c.$constellation.\uff0cfunctiongetConstellation\uff0c$birthdate\uff0c$month=substr\uff0c$birthdate\uff0c5\uff0c2\uff0c$day=substr\uff0c$birthdate\uff0c8\uff0c2&#8230;\u3002<\/p>\n","protected":false},"author":1,"featured_media":2123,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1289],"class_list":["post-2124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12shengxiao","tag-1289"],"_links":{"self":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2124","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=2124"}],"version-history":[{"count":1,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2124\/revisions"}],"predecessor-version":[{"id":2125,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/posts\/2124\/revisions\/2125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media\/2123"}],"wp:attachment":[{"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0592ban.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}