{"id":199187,"date":"2025-05-03T12:52:54","date_gmt":"2025-05-03T04:52:54","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199187\/"},"modified":"2025-05-03T12:52:54","modified_gmt":"2025-05-03T04:52:54","slug":"ecshop%e6%96%87%e7%ab%a0%e9%a1%b5%e9%9d%a2%e8%87%aa%e5%ae%9a%e4%b9%89%e6%a0%87%e9%a2%98","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199187\/","title":{"rendered":"ecshop\u6587\u7ae0\u9875\u9762\u81ea\u5b9a\u4e49\u6807\u9898"},"content":{"rendered":"<p>&nbsp;<span style=\"font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">\u968f\u7740ecshop\u8d8a\u6765\u8d8a\u591a\uff0c\u4f7f\u7528ecshop\u505a\u5546\u57ce\u7684\u4e0d\u8ba1\u5176\u6570\uff0c\u636e\u8bf4\u8fd9\u6837\u4e0d\u5229\u4e8e<\/span><span style=\"font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">ecshop SEO<\/span><span style=\"font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">\uff0c\u6240\u6709\u7684ecshop\u7684\u6a21\u677f\u90fd\u5dee\u4e0d\u591a\uff0c\u5982\u679c\u5185\u5bb9\u76f8\u540c\u7684\u8bdd\uff0c\u90a3\u4e48\u5bf9\u641c\u7d22\u5f15\u64ce\u6765\u8bf4\uff0c\u662f\u7279\u522b\u4e0d\u53cb\u597d\u7684\uff0c\u4e3a\u4e86\u51cf\u5c11\u91cd\u590d\u6027\u5185\u5bb9\uff0c\u800c\u4e14ecshop\u7684\u6807\u9898\u4e5f\u5b58\u5728\u7279\u522b\u5927\u7684\u95ee\u9898\u3002\u6bd4\u5982\u6807\u9898\u3002\u4ed6\u5c31\u662f\u901a\u8fc7\u6807\u9898+\u6587\u7ae0\u5206\u7c7b+\u5546\u57ce\u540d\u79f0\u7ec4\u6210\u7684\u3002\u4e3a\u4e86\u8ba9ecshop\u6587\u7ae0\u6807\u9898\u66f4\u52a0\u7075\u6d3b\u3002\u6211\u4eec\u53ef\u4ee5\u91c7\u7528ecshop\u6587\u7ae0\u9875\u9762\u81ea\u5b9a\u4e49\u6807\u9898\u3002<\/span><\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp; 1\uff1a\u9996\u5148\u7ed9ecshop\u7684\u6587\u7ae0\u8868ecs_article\u589e\u52a0\u4e2a\u5b57\u6bb5\u3002<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp;&nbsp;alter table ecs_article add column seo_title varchar(128)<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp; 2: admin\/templates\/article_info.htm<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp;&nbsp; &lt;tr&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td class=&#8221;narrow-label&#8221;&gt;{$lang.title}&lt;\/td&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td&gt;&lt;input type=&#8221;text&#8221; name=&#8221;seo_title &#8221; size =&#8221;40&#8243; maxlength=&#8221;60&#8243; value=&#8221;{$article.seo_title |escape}&#8221; \/&gt;{$lang.require_field}&lt;\/td&gt;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;\/tr&gt;&nbsp;&nbsp;&nbsp;<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp; 3:admin\/article.php<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp; $sql = &#8220;INSERT INTO &#8220;.$ecs-&gt;table(&#8216;article&#8217;).&#8221;(title, cat_id, article_type, is_open, author, &#8220;.<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;author_email, keywords, content, add_time, file_url, open_type, link, description,seo_title) &#8220;.<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;VALUES (&#8216;$_POST[title]&#8217;, &#8216;$_POST[article_cat]&#8217;, &#8216;$_POST[article_type]&#8217;, &#8216;$_POST[is_open]&#8217;, &#8220;.<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;&#8216;$_POST[author]&#8217;, &#8216;$_POST[author_email]&#8217;, &#8216;$_POST[keywords]&#8217;, &#8216;$_POST[FCKeditor1]&#8217;, &#8220;.<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;&#8216;$add_time&#8217;, &#8216;$file_url&#8217;, &#8216;$open_type&#8217;, &#8216;$_POST[link_url]&#8217;, &#8216;$_POST[description]&#8217;,&#8217;$_POST[seo_title]&#8217;)&#8221;;<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp; 4:admin\/article.php<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;&nbsp;&nbsp; $exc-&gt;edit(&#8220;title=&#8217;$_POST[title]&#8217;, cat_id=&#8217;$_POST[article_cat]&#8217;, article_type=&#8217;$_POST[article_type]&#8217;, is_open=&#8217;$_POST[is_open]&#8217;, author=&#8217;$_POST[author]&#8217;, author_email=&#8217;$_POST[author_email]&#8217;, keywords =&#8217;$_POST[keywords]&#8217;, file_url =&#8217;$file_url&#8217;, open_type=&#8217;$open_type&#8217;, content=&#8217;$_POST[FCKeditor1]&#8217;, link=&#8217;$_POST[link_url]&#8217;, description = &#8216;$_POST[description]&#8217;,seo_title=&#8217;$_POST[seo_title]'&#8221;, $_POST[&#8216;id&#8217;])<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp;5:article.dwt\u91cc\u9762\u8c03\u7528<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp; {$article.seo_title}<\/p>\n<p style=\"padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;font-family: Verdana, Arial, Tahoma;font-size: 14px;line-height: 25px\">&nbsp; \u4ee5\u4e0a\u5c31\u5b8c\u6210\u4e86ecshop\u6587\u7ae0\u9875\u9762\u81ea\u5b9a\u4e49\u6807\u9898<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u968f\u7740ecshop\u8d8a\u6765&#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-199187","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199187","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=199187"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199187\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}