{"id":30269,"date":"2024-11-25T09:15:14","date_gmt":"2024-11-25T01:15:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30269\/"},"modified":"2024-11-25T09:15:14","modified_gmt":"2024-11-25T01:15:14","slug":"dedecms%e7%82%b9%e5%87%bb%e5%9b%be%e7%89%87%e8%bf%9b%e5%85%a5%e4%b8%8b%e4%b8%80%e9%a1%b5%e5%8a%9f%e8%83%bd%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30269\/","title":{"rendered":"DEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0"},"content":{"rendered":"<p style=\"text-align: justify\"><strong>DEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0\uff1f<\/strong><\/p>\n<p>\u73b0\u5728\u5f88\u591a\u4f7f\u7528\u505a\u95e8\u6237\u7f51\u7ad9\u7684\u90fd\u6709\u56fe\u7247\u6216\u56fe\u96c6\u9891\u9053\uff0c\u6709\u4e9b\u7ad9\u957f\u4e3a\u4e86\u589e\u52a0\u4eba\u6c14\u4e5f\u4e0a\u7ebf\u4e86\u6b64\u7c7b\u9891\u9053\uff0c\u5bf9\u4e8e\u4f7f\u7528dedecms\u5efa\u7ad9\u7684\u7ad9\u957f\u6765\u8bf4\uff0c\u6700\u60f3\u5b9e\u73b0\u7684\u5c31\u662f\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u8fd9\u4e2a\u529f\u80fd\u4e86\u3002<\/p>\n<p style=\"text-align: center\">&nbsp;&nbsp;<img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5df2e8d8a79c5400.jpg\" class=\"aligncenter\" title=\"DEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0\u63d2\u56fe\" alt=\"DEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0\u63d2\u56fe\" \/><\/p>\n<p>\u76f4\u63a5\u5165\u6b63\u9898\uff0c\u7279\u70b9\u662f\uff1a\u4e0d\u4fee\u6539\u6e90\u7801\uff0c\u53ea\u5728\u6a21\u677f\u4e0a\u505a\u5904\u7406\u3002&nbsp;<\/p>\n<p>\u4fee\u6539 include\/arc.archives.class.php&nbsp;<\/p>\n<p>1.\u67e5\u627e\u201c\/\/\u89e3\u6790\u6a21\u677f\uff0c\u5bf9\u5185\u5bb9\u91cc\u7684\u53d8\u52a8\u8fdb\u884c\u8d4b\u503c\u201d\u5728\u8fd9\u6bb5\u8bdd\u4e0a\u9762\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801 \uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>function&nbsp;ClickPicNext($ismake=1,$aid,&amp;amp;$body)&nbsp;\n{&nbsp;\nglobal&nbsp;$cfg_rewrite;&nbsp;\nif($this-&amp;gt;NowPage!=$this-&amp;gt;TotalPage)&nbsp;\n{&nbsp;\n$lPage=$this-&amp;gt;NowPage+1;&nbsp;\nif($ismake=0)&nbsp;\n{&nbsp;\n$body=preg_replace(\"\/)\/isU\",\"\u70b9\u51fb\u56fe\u7247,\u8fdb\u5165\u4e0b\u4e00\u9875&lt;br&gt;&lt;a&gt;NameFirst.\"_\".$lPage.\".\".$this-&amp;gt;ShortName.\"'&amp;gt;\".\"${0}\".\"&lt;\/a&gt;\",$body);&nbsp;\n}&nbsp;\nelse&nbsp;\n{&nbsp;\n$PageList=\"&lt;a&gt;\".\"${0}\".\"&lt;\/a&gt;\";&nbsp;\nif($cfg_rewrite&nbsp;==&nbsp;'Y')&nbsp;\n{&nbsp;\n$PageList&nbsp;=&nbsp;str_replace(\".php?aid=\",\"-\",$PageList);&nbsp;\n$PageList&nbsp;=&nbsp;preg_replace(\"\/&amp;amp;pageno=(d+)\/i\",'-\\1.html',$PageList);&nbsp;\n}&nbsp;\n$body=preg_replace(\"\/)\/isU\",$PageList,$body);&nbsp;\n}&nbsp;\n}&nbsp;\nelse&nbsp;\n{&nbsp;\n$body=preg_replace(\"\/)\/isU\",$this-&amp;gt;GetPreNext('imgnext'),$body);&nbsp;\n}&nbsp;\nreturn&nbsp;$body;&nbsp;\n}&nbsp;\n2\uff0c\u67e5\u627e$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]&nbsp;=&nbsp;$this-&amp;gt;SplitFields[$pageNo&nbsp;-&nbsp;1];&nbsp;\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp;\nif($ClickPicNext){&nbsp;\n$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]=$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField];&nbsp;\n}else{&nbsp;\n$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]=$this-&amp;gt;ClickPicNext($ismake,$this-&amp;gt;Fields['id'],$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]);&nbsp;\n}&nbsp;\n3\uff0c\u67e5\u627e$this-&amp;gt;PreNext['next']&nbsp;=&nbsp;\"\u4e0b\u4e00\u7bc7\uff1a&lt;a&gt;{$nextRow['title']}&lt;\/a&gt;&nbsp;\";\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp;\n$this-&amp;gt;PreNext['imgnext']&nbsp;=\"&lt;a&gt;\".\"${0}\".\"&lt;\/a&gt;\";&nbsp;\n4\uff0c\u67e5\u627e$this-&amp;gt;PreNext['next']&nbsp;=&nbsp;\"\u4e0b\u4e00\u7bc7\uff1a\u6ca1\u6709\u4e86&nbsp;\";\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp;\n$this-&amp;gt;PreNext['imgnext']&nbsp;=\"${0}\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>5.\u67e5\u627e&nbsp;<\/p>\n<pre>else&nbsp;if($gtype=='next')&nbsp;\n{&nbsp;\n$rs&nbsp;=&nbsp;$this-&amp;gt;PreNext['next'];&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>else&nbsp;if($gtype=='imgnext')&nbsp;\n{&nbsp;\n$rs&nbsp;=&nbsp;$this-&amp;gt;PreNext['imgnext'];&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0\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>DEDECMS\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u529f\u80fd\u5982\u4f55\u5b9e\u73b0\uff1f \u73b0\u5728\u5f88\u591a\u4f7f\u7528\u505a\u95e8\u6237\u7f51\u7ad9\u7684\u90fd\u6709\u56fe\u7247\u6216\u56fe\u96c6\u9891\u9053\uff0c\u6709\u4e9b\u7ad9\u957f\u4e3a\u4e86\u589e\u52a0\u4eba\u6c14\u4e5f\u4e0a\u7ebf\u4e86\u6b64\u7c7b\u9891\u9053\uff0c\u5bf9\u4e8e\u4f7f\u7528dedecms\u5efa\u7ad9\u7684\u7ad9\u957f\u6765\u8bf4\uff0c\u6700\u60f3\u5b9e\u73b0\u7684\u5c31\u662f\u70b9\u51fb\u56fe\u7247\u8fdb\u5165\u4e0b\u4e00\u9875\u8fd9\u4e2a\u529f\u80fd\u4e86\u3002 &nbsp;&nbsp; \u76f4\u63a5\u5165\u6b63\u9898\uff0c\u7279\u70b9\u662f\uff1a\u4e0d\u4fee\u6539\u6e90\u7801\uff0c\u53ea\u5728\u6a21\u677f\u4e0a\u505a\u5904\u7406\u3002&nbsp; \u4fee\u6539 include\/arc.archives.class.php&nbsp; 1.\u67e5\u627e\u201c\/\/\u89e3\u6790\u6a21\u677f\uff0c\u5bf9\u5185\u5bb9\u91cc\u7684\u53d8\u52a8\u8fdb\u884c\u8d4b\u503c\u201d\u5728\u8fd9\u6bb5\u8bdd\u4e0a\u9762\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801 \uff1a&nbsp; \u4ee3\u7801\u5982\u4e0b: function&nbsp;ClickPicNext($ismake=1,$aid,&amp;amp;$body)&nbsp; {&nbsp; global&nbsp;$cfg_rewrite;&nbsp; if($this-&amp;gt;NowPage!=$this-&amp;gt;TotalPage)&nbsp; {&nbsp; $lPage=$this-&amp;gt;NowPage+1;&nbsp; if($ismake=0)&nbsp; {&nbsp; $body=preg_replace(&#8220;\/)\/isU&#8221;,&#8221;\u70b9\u51fb\u56fe\u7247,\u8fdb\u5165\u4e0b\u4e00\u9875&lt;br&gt;&lt;a&gt;NameFirst.&#8221;_&#8221;.$lPage.&#8221;.&#8221;.$this-&amp;gt;ShortName.&#8221;&#8216;&amp;gt;&#8221;.&#8221;${0}&#8221;.&#8221;&lt;\/a&gt;&#8221;,$body);&nbsp; }&nbsp; else&nbsp; {&nbsp; $PageList=&#8221;&lt;a&gt;&#8221;.&#8221;${0}&#8221;.&#8221;&lt;\/a&gt;&#8221;;&nbsp; if($cfg_rewrite&nbsp;==&nbsp;&#8216;Y&#8217;)&nbsp; {&nbsp; $PageList&nbsp;=&nbsp;str_replace(&#8220;.php?aid=&#8221;,&#8221;-&#8220;,$PageList);&nbsp; $PageList&nbsp;=&nbsp;preg_replace(&#8220;\/&amp;amp;pageno=(d+)\/i&#8221;,&#8217;-\\1.html&#8217;,$PageList);&nbsp; }&nbsp; $body=preg_replace(&#8220;\/)\/isU&#8221;,$PageList,$body);&nbsp; }&nbsp; }&nbsp; else&nbsp; {&nbsp; $body=preg_replace(&#8220;\/)\/isU&#8221;,$this-&amp;gt;GetPreNext(&#8216;imgnext&#8217;),$body);&nbsp; }&nbsp; return&nbsp;$body;&nbsp; }&nbsp; 2\uff0c\u67e5\u627e$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]&nbsp;=&nbsp;$this-&amp;gt;SplitFields[$pageNo&nbsp;&#8211;&nbsp;1];&nbsp;\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp; if($ClickPicNext){&nbsp; $this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]=$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField];&nbsp; }else{&nbsp; $this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]=$this-&amp;gt;ClickPicNext($ismake,$this-&amp;gt;Fields[&#8216;id&#8217;],$this-&amp;gt;Fields[$this-&amp;gt;SplitPageField]);&nbsp; }&nbsp; 3\uff0c\u67e5\u627e$this-&amp;gt;PreNext[&#8216;next&#8217;]&nbsp;=&nbsp;&#8220;\u4e0b\u4e00\u7bc7\uff1a&lt;a&gt;{$nextRow[&#8216;title&#8217;]}&lt;\/a&gt;&nbsp;&#8220;;\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp; $this-&amp;gt;PreNext[&#8216;imgnext&#8217;]&nbsp;=&#8221;&lt;a&gt;&#8221;.&#8221;${0}&#8221;.&#8221;&lt;\/a&gt;&#8221;;&nbsp; 4\uff0c\u67e5\u627e$this-&amp;gt;PreNext[&#8216;next&#8217;]&nbsp;=&nbsp;&#8220;\u4e0b\u4e00\u7bc7\uff1a\u6ca1\u6709\u4e86&nbsp;&#8220;;\u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp; $this-&amp;gt;PreNext[&#8216;imgnext&#8217;]&nbsp;=&#8221;${0}&#8221;; \u767b\u5f55\u540e\u590d\u5236 5.\u67e5\u627e&nbsp; else&nbsp;if($gtype==&#8217;next&#8217;)&nbsp; {&nbsp; $rs&nbsp;=&nbsp;$this-&amp;gt;PreNext[&#8216;next&#8217;];&nbsp; } \u767b\u5f55\u540e\u590d\u5236 \u5728\u5176\u4e0b\u9762\u6dfb\u52a0&nbsp; \u4ee3\u7801\u5982\u4e0b: [&hellip;]<\/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-30269","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30269","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=30269"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30269\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}