{"id":199093,"date":"2025-05-03T08:25:30","date_gmt":"2025-05-03T00:25:30","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199093\/"},"modified":"2025-05-03T08:25:30","modified_gmt":"2025-05-03T00:25:30","slug":"%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%aeecshop%e6%96%87%e7%ab%a0%e5%88%97%e8%a1%a8%e6%98%be%e7%a4%ba%e5%86%85%e5%ae%b9%e6%8f%90%e8%a6%81","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199093\/","title":{"rendered":"\u5982\u4f55\u8bbe\u7f6eecshop\u6587\u7ae0\u5217\u8868\u663e\u793a\u5185\u5bb9\u63d0\u8981"},"content":{"rendered":"<p>\u53ef\u4ee5\u63d0\u53d6\u8be6\u7ec6\u5185\u5bb9\u7684\u56fa\u5b9a\u5b57\u7b26\u5bbd\u5ea6<br \/> \u4fee\u6539\uff1aincludes\\lib_article.php<br \/> \u627e\u5230<br \/> function get_cat_articles($cat_id, $page = 1, $size = 20)<br \/> \u51fd\u6570<br \/> \u5728<\/p>\n<p>&nbsp;<\/p>\n<p>$sql = &#8216;SELECT article_id, title,<font>content<\/font>, author, add_time, file_url, open_type&#8217; .<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&#8216; FROM &#8216; .$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;article&#8217;) .<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&#8221; WHERE is_open = 1 AND &#8221; . $cat_str .<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&#8216; ORDER BY article_type DESC, article_id DESC&#8217;;<\/p>\n<p>&nbsp;<\/p>\n<p>\u589e\u52a0 content \u5b57\u6bb5<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p>\n  \u5728<br \/>\n <br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$arr[$article_id][&#8216;add_time&#8217;]&nbsp; &nbsp; = date($GLOBALS[&#8216;_CFG&#8217;][&#8216;date_format&#8217;], $row[&#8216;add_time&#8217;]);<br \/>\n <br \/> \u4e0b\u9762 \u589e\u52a0<br \/>\n <br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br \/>\n <font>$arr[$article_id][&#8216;content&#8217;]&nbsp; &nbsp;&nbsp; &nbsp; = $row[&#8216;content&#8217;];<\/font>\n<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>article_cat.dwt<br \/> \u8c03\u7528 \u4f8b\u5b50<br \/> <font>{$article.content|strip_tags|truncate:20:&#8221;&#8230;&#8221;}<\/font><br \/> \u663e\u793a\u524d20\u5b57\u7b26 \u591a\u4f59\u7684 \u4f7f\u7528 &#8230;\u4ee3\u66ff<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53ef\u4ee5\u63d0\u53d6\u8be6\u7ec6\u5185\u5bb9\u7684\u56fa\u5b9a\u5b57\u7b26\u5bbd\u5ea6 &#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199093","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199093"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199093\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}