{"id":1788,"date":"2018-07-04T16:47:05","date_gmt":"2018-07-04T08:47:05","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1788"},"modified":"2019-03-09T21:26:27","modified_gmt":"2019-03-09T13:26:27","slug":"%e7%bb%87%e6%a2%a6dedecms%e6%96%87%e7%ab%a0%e5%91%bd%e5%90%8d%e8%a7%84%e5%88%99cc%e8%bf%98%e5%8e%9f%e7%9c%9f%e5%ae%9e%e6%96%87%e7%ab%a0id","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1788.html","title":{"rendered":"\u7ec7\u68a6DedeCms\u6587\u7ae0\u547d\u540d\u89c4\u5219{cc}\u8fd8\u539f\u771f\u5b9e\u6587\u7ae0id"},"content":{"rendered":"

\u7ec7\u68a6\u6587\u7ae0\u547d\u540d\u89c4\u5219{cc} \u65e5\u671f+ID\u6df7\u7f16\u540e\u7528\u8f6c\u6362\u4e3a\u9002\u5408\u7684\u5b57\u6bcd,\u6709\u65f6\u6211\u4eec\u8981\u9002\u914d\u6216\u8005\u4f2a\u9759\u6001\u65f6\u9700\u8981\u62ff\u5230\u771f\u5b9e\u7684\u6587\u7ae0id\uff0c\u6240\u4ee5\u8981\u628a{cc}\u7528ord()\u7cfb\u7edf\u51fd\u6570\u628a\u5b57\u6bcd\u8fd8\u539f\u56de\u6765.<\/p>\n

\u5728\/plus\/view.php\u91cc\u9762\u6dfb\u52a0<\/p>\n

\"\"<\/a><\/p>\n

\u8fd8\u539f\u4ee3\u7801<\/h2>\n
\/\/\u8fd8\u539f{cc}\r\nif(isset($aid) && strlen($aid) > 8)\r\n{\r\n\t$aid = !is_numeric($aid) ? preg_replace_callback('\/[A-Za-z]\/', function($m) { return ord($m[0]);}, $aid) : $aid;\r\n\t$aid =  substr(substr($aid, 0, -4), 4);\r\n}<\/code><\/pre>\n

\u6587\u7ae0\u4f2a\u9759\u6001\u89c4\u5219\u4e5f\u5f97\u4fee\u6539\u3002\u6b64\u89c4\u5219\u662f\u6309\u4e0b\u9762\u5730\u5740\u7684\u4f2a\u9759\u6001\u89c4\u5219\u8bbe\u7f6e\u7684\u3002<\/p>\n

\u6700\u65b0\u7ec7\u68a6DEDECMS\u5168\u7ad9\u76ee\u5f55\u5316\u4f2a\u9759\u6001\u8bbe\u7f6e(\u7f51\u5740\u548c\u751f\u6210\u9759\u6001\u5730\u5740\u4e00\u6837\u3001\u7535\u8111\u548c\u624b\u673a\u8bbf\u95ee\u5730\u5740\u4e5f\u4e00\u6837)<\/a><\/h1>\n

 <\/p>\n

\u7535\u8111\u7aef\u7684\u6587\u7ae0\u4f2a\u9759\u6001\u89c4\u5219\u7531<\/p>\n

rewrite ^\/(.*)\/([0-9]+)\\.html$ \/plus\/view.php?aid=$1;<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

rewrite ^\/(.*)\/([0-9a-zA-Z]+)\\.html$ \/plus\/view.php?aid=$2;<\/code><\/pre>\n

 <\/p>\n

\u624b\u673a\u7aef\u7684\u5185\u5bb9\u9875\u4f2a\u9759\u6001\u89c4\u5219\u7531<\/p>\n

rewrite ^\/(.*)\/([0-9]+)\\.html$ \/view.php?aid=$1;<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

rewrite ^\/(.*)\/([0-9a-zA-Z]+)\\.html$ \/view.php?aid=$2;<\/code><\/pre>\n

 <\/p>\n

\u6f14\u793a\u5730\u5740\uff1ahttps:\/\/www.kouhao.org\/<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ec7\u68a6\u6587\u7ae0\u547d\u540d\u89c4\u5219{cc} \u65e5\u671f+ID\u6df7\u7f16\u540e\u7528\u8f6c\u6362\u4e3a\u9002\u5408\u7684\u5b57\u6bcd,\u6709\u65f6\u6211\u4eec\u8981\u9002\u914d\u6216\u8005\u4f2a\u9759\u6001\u65f6\u9700\u8981\u62ff\u5230\u771f\u5b9e\u7684\u6587\u7ae0id […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,755,425,180],"class_list":["post-1788","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-cc","tag-425","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1788"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1788\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}