{"id":29741,"date":"2024-11-25T08:54:21","date_gmt":"2024-11-25T00:54:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29741\/"},"modified":"2024-11-25T08:54:21","modified_gmt":"2024-11-25T00:54:21","slug":"dedecms%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f%e6%b1%87%e6%80%bb","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29741\/","title":{"rendered":"DedeCMS\u65f6\u95f4\u683c\u5f0f\u6c47\u603b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/029\/5dd642e409b1e193.jpg\" class=\"aligncenter\" title=\"DedeCMS\u65f6\u95f4\u683c\u5f0f\u6c47\u603b\u63d2\u56fe\" alt=\"DedeCMS\u65f6\u95f4\u683c\u5f0f\u6c47\u603b\u63d2\u56fe\" \/><\/p>\n<p><strong>\u65f6\u95f4\u683c\u5f0f<\/strong>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \uff08\u63a8\u8350\u5b66\u4e60\uff1a\/&#8221; target=&#8221;_self&#8221; textvalue=&#8221;dedecms\u6559\u7a0b&#8221;&gt;dedecms\u6559\u7a0b\uff09<\/p>\n<pre>{dede:field&nbsp;name='pubdate'&nbsp;function='strftime(\"%Y\u5e74%m\u6708%d\u65e5&nbsp;%H:%M:%S\",\"@me\")'&nbsp;\/}2007\u5e741\u67081\u65e5&nbsp;18:30:02\n{dede:field&nbsp;name='pubdate'&nbsp;function='strftime(\"%Y-%m-%d&nbsp;%H:%M:%S\",\"@me\")'&nbsp;\/}2007-1-1&nbsp;18:30:02\n{dede:field&nbsp;name='pubdate'&nbsp;function='strftime(\"%Y\u5e74%m\u6708%d\u65e5&nbsp;%H\u65f6%M\u5206%S\u79d2\",\"@me\")'&nbsp;\/}2007\u5e741\u67081\u65e5&nbsp;18\u65f630\u520602\u79d2\n{dede:field&nbsp;name='pubdate'&nbsp;function='strftime(\"%m-%d&nbsp;%H:%M:%S\",\"@me\")'&nbsp;\/}1-1&nbsp;18:30:02\n{dede:field&nbsp;name='pubdate'&nbsp;function='strftime(\"%m-%d\",\"@me\")'&nbsp;\/}1-1\n%Y-\u5e74\n%m-\u6708\n%d-\u65e5\n%H-\u5c0f\u65f6\n%M-\u5206\n%S-\u79d2<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>24\u5c0f\u65f6\u5185\u7684\u65f6\u95f4\u663e\u793a\u7ea2\u8272..<\/strong><\/p>\n<pre>[field:pubdate&nbsp;runphp='yes']\n$a=\"&lt;font&gt;\";\n$b=\"&lt;\/font&gt;\";\n$c=strftime(\"%Y\u5e74%m\u6708%d\u65e5&nbsp;%H:%M:%S\",\"@me\");\n$ntime&nbsp;=&nbsp;time();\n$oneday&nbsp;=&nbsp;3600&nbsp;*&nbsp;24;\nif(($ntime&nbsp;-&nbsp;@me)&lt;p&gt;&lt;strong&gt;\u6700\u540e\u66f4\u65b0\u65f6\u95f4&lt;\/strong&gt;&lt;\/p&gt;&lt;p&gt;\u6700\u540e\u66f4\u65b0\u65f6\u95f4\uff1a{dede:tagname runphp='yes'}@me = date(\"Y-m-d H:i:s\", time());{\/dede:tagname}&lt;\/p&gt;&lt;p&gt;&lt;strong&gt;XX\u5929\u524d&lt;\/strong&gt;&lt;\/p&gt;&lt;pre class=\"brush:html;toolbar:false\"&gt;[field:pubdate&nbsp;runphp='yes']\n$today&nbsp;=&nbsp;Floor(time()\/(3600&nbsp;*&nbsp;24));\n$senday=&nbsp;Floor(@me\/(3600&nbsp;*&nbsp;24));\n$updays&nbsp;=&nbsp;$today-$senday;\nif($updays==0)&nbsp;@me&nbsp;=&nbsp;\"\u4eca\u65e5\";\nelse&nbsp;@me&nbsp;=&nbsp;$updays.\"\u5929\u524d\";\n[\/field:pubdate]<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDedeCMS\u65f6\u95f4\u683c\u5f0f\u6c47\u603b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65f6\u95f4\u683c\u5f0f&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \uff08\u63a8\u8350\u5b66\u4e60\uff1a\/&#8221; target=&#8221;_self&#8221; textvalue=&#8221;dedecms\u6559\u7a0b&#8221;&gt;dedecms\u6559\u7a0b\uff09 {dede:field&nbsp;name=&#8217;pubdate&#8217;&nbsp;function=&#8217;strftime(&#8220;%Y\u5e74%m\u6708%d\u65e5&nbsp;%H:%M:%S&#8221;,&#8221;@me&#8221;)&#8217;&nbsp;\/}2007\u5e741\u67081\u65e5&nbsp;18:30:02 {dede:field&nbsp;name=&#8217;pubdate&#8217;&nbsp;function=&#8217;strftime(&#8220;%Y-%m-%d&nbsp;%H:%M:%S&#8221;,&#8221;@me&#8221;)&#8217;&nbsp;\/}2007-1-1&nbsp;18:30:02 {dede:field&nbsp;name=&#8217;pubdate&#8217;&nbsp;function=&#8217;strftime(&#8220;%Y\u5e74%m\u6708%d\u65e5&nbsp;%H\u65f6%M\u5206%S\u79d2&#8221;,&#8221;@me&#8221;)&#8217;&nbsp;\/}2007\u5e741\u67081\u65e5&nbsp;18\u65f630\u520602\u79d2 {dede:field&nbsp;name=&#8217;pubdate&#8217;&nbsp;function=&#8217;strftime(&#8220;%m-%d&nbsp;%H:%M:%S&#8221;,&#8221;@me&#8221;)&#8217;&nbsp;\/}1-1&nbsp;18:30:02 {dede:field&nbsp;name=&#8217;pubdate&#8217;&nbsp;function=&#8217;strftime(&#8220;%m-%d&#8221;,&#8221;@me&#8221;)&#8217;&nbsp;\/}1-1 %Y-\u5e74 %m-\u6708 %d-\u65e5 %H-\u5c0f\u65f6 %M-\u5206 %S-\u79d2 \u767b\u5f55\u540e\u590d\u5236 24\u5c0f\u65f6\u5185\u7684\u65f6\u95f4\u663e\u793a\u7ea2\u8272.. [field:pubdate&nbsp;runphp=&#8217;yes&#8217;] $a=&#8221;&lt;font&gt;&#8221;; $b=&#8221;&lt;\/font&gt;&#8221;; $c=strftime(&#8220;%Y\u5e74%m\u6708%d\u65e5&nbsp;%H:%M:%S&#8221;,&#8221;@me&#8221;); $ntime&nbsp;=&nbsp;time(); $oneday&nbsp;=&nbsp;3600&nbsp;*&nbsp;24; if(($ntime&nbsp;&#8211;&nbsp;@me)&lt;p&gt;&lt;strong&gt;\u6700\u540e\u66f4\u65b0\u65f6\u95f4&lt;\/strong&gt;&lt;\/p&gt;&lt;p&gt;\u6700\u540e\u66f4\u65b0\u65f6\u95f4\uff1a{dede:tagname runphp=&#8217;yes&#8217;}@me = date(&#8220;Y-m-d H:i:s&#8221;, time());{\/dede:tagname}&lt;\/p&gt;&lt;p&gt;&lt;strong&gt;XX\u5929\u524d&lt;\/strong&gt;&lt;\/p&gt;&lt;pre class=&#8221;brush:html;toolbar:false&#8221;&gt;[field:pubdate&nbsp;runphp=&#8217;yes&#8217;] $today&nbsp;=&nbsp;Floor(time()\/(3600&nbsp;*&nbsp;24)); $senday=&nbsp;Floor(@me\/(3600&nbsp;*&nbsp;24)); $updays&nbsp;=&nbsp;$today-$senday; if($updays==0)&nbsp;@me&nbsp;=&nbsp;&#8220;\u4eca\u65e5&#8221;; else&nbsp;@me&nbsp;=&nbsp;$updays.&#8221;\u5929\u524d&#8221;; [\/field:pubdate] \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662fDedeCMS\u65f6\u95f4\u683c\u5f0f\u6c47\u603b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29741","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29741","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29741"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29741\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29741"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}