{"id":59020,"date":"2025-04-23T12:40:18","date_gmt":"2025-04-23T04:40:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59020\/"},"modified":"2025-04-23T12:40:18","modified_gmt":"2025-04-23T04:40:18","slug":"%e5%8e%bb%e9%99%a4ecshop%e5%90%8e%e5%8f%b0%e8%b0%83%e7%94%a8api-ecshop-com%e5%ae%98%e7%bd%91%e5%90%8e%e9%97%a8%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59020\/","title":{"rendered":"\u53bb\u9664Ecshop\u540e\u53f0\u8c03\u7528api.ecshop.com\u5b98\u7f51\u540e\u95e8\u4ee3\u7801"},"content":{"rendered":"<p>Ecshop\u540e\u53f0\u5bf9ecshop\u5b98\u7f51\u7684\u8c03\u7528\u7684\u6587\u4ef6\u6709\uff1a  <\/p>\n<ul>\n<li> 1 help.php<\/li>\n<li> 2 index.php<\/li>\n<li> 3 shop_config.php<\/li>\n<li> 4 templates\/menu.htm<\/li>\n<li> 5 templates\/start.htm<\/li>\n<\/ul>\n<p>  1help.php\u8fd9\u4e2a\u4e0d\u662f\u8c03\u7528\uff0c\u662fheader\u5230ecshop\u5e2e\u52a9\u6587\u6863\u7684\u9996\u9875http:\/\/help.ecshop.com   &nbsp;   2 index.php\u91cc\u9762   elseif ($_REQUEST[&#8216;act&#8217;] == &#8216;main_api&#8217;)   $api_comment = $t-&gt;request(&#8216;http:\/\/api.ecshop.com\/checkver.php&#8217;,$apiget);   \u8fd9\u4e2a\u662f\u68c0\u67e5\u7248\u672c\u7684\uff0c\u663e\u793a\u5728\u540e\u53f0\u9996\u9875\u6700\u4e0a\u9762\uff0c\u5982\u679c\u6709\u66f4\u65b0\u5c31\u63d0\u793a\u60a8\u6709\u66f4\u65b0\u7684\u7248\u672c   &nbsp;    \u5728templates\/start.htm\u91cc\u9762\u6709Ajax.call(&#8216;index.php?is_ajax=1&amp;act=main_api&#8217;,&#8221;,start_api, &#8216;GET&#8217;, &#8216;TEXT&#8217;,&#8217;FLASE&#8217;);   \u628a\u8fd9\u53e5\u6ce8\u91ca\u6389\u5c31\u4e0d\u4f1a\u8c03\u7528main_api\u91cc\u3002    &nbsp;   3 shop_config.php    &nbsp; &nbsp;&nbsp;    &nbsp; &nbsp;&nbsp; &nbsp;$spt = &#8216;   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_name=&#8221; .urlencode($_CFG[&#8216;shop_name&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_title=&#8221;.urlencode($_CFG[&#8216;shop_title&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_desc=&#8221; .urlencode($_CFG[&#8216;shop_desc&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_keywords=&#8221;.urlencode($_CFG[&#8216;shop_keywords&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;country=&#8221;.urlencode($shop_country).&#8221;&amp;province=&#8221;.urlencode($shop_province).&#8221;&amp;city=&#8221;.urlencode($shop_city);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;address=&#8221;.urlencode($_CFG[&#8216;shop_address&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;qq=$_CFG[qq]&amp;ww=$_CFG[ww]&amp;ym=$_CFG[ym]&amp;msn=$_CFG[msn]&#8221;;   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;email=$_CFG[service_email]&amp;phone=$_CFG[service_phone]&amp;icp=&#8221;.urlencode($_CFG[&#8216;icp_number&#8217;]);   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;version=&#8221;.VERSION.&#8221;&amp;language=$_CFG[lang]&amp;php_ver=&#8221;.PHP_VERSION. &#8220;&amp;mysql_ver=&#8221;.$db-&gt;version();   &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;charset=&#8221;.EC_CHARSET;   &nbsp; &nbsp;&nbsp; &nbsp;$spt .='&#8221;&gt;&#8217;;   &nbsp;    &nbsp;   4&nbsp; templates\/menu.htm&nbsp;    \u8fd9\u4e2a\u5e94\u8be5\u662f\u8c03\u7528ecshop\u90a3\u8fb9\u63d0\u4f9b\u7684\u83dc\u5355\u9009\u9879   &nbsp;   5templates\/start.htm   &nbsp;  \u5982\u679c\u4e0d\u8981\u5c31\u628a\u6ce8\u91ca\u6389<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ecshop\u540e\u53f0\u5bf9ecshop\u5b98\u7f51\u7684\u8c03\u7528\u7684\u6587\u4ef6\u6709\uff1a 1 help.php 2 index.php 3 shop_config.php 4 templates\/menu.htm 5 templates\/start.htm 1help.php\u8fd9\u4e2a\u4e0d\u662f\u8c03\u7528\uff0c\u662fheader\u5230ecshop\u5e2e\u52a9\u6587\u6863\u7684\u9996\u9875http:\/\/help.ecshop.com &nbsp; 2 index.php\u91cc\u9762 elseif ($_REQUEST[&#8216;act&#8217;] == &#8216;main_api&#8217;) $api_comment = $t-&gt;request(&#8216;http:\/\/api.ecshop.com\/checkver.php&#8217;,$apiget); \u8fd9\u4e2a\u662f\u68c0\u67e5\u7248\u672c\u7684\uff0c\u663e\u793a\u5728\u540e\u53f0\u9996\u9875\u6700\u4e0a\u9762\uff0c\u5982\u679c\u6709\u66f4\u65b0\u5c31\u63d0\u793a\u60a8\u6709\u66f4\u65b0\u7684\u7248\u672c &nbsp; \u5728templates\/start.htm\u91cc\u9762\u6709Ajax.call(&#8216;index.php?is_ajax=1&amp;act=main_api&#8217;,&#8221;,start_api, &#8216;GET&#8217;, &#8216;TEXT&#8217;,&#8217;FLASE&#8217;); \u628a\u8fd9\u53e5\u6ce8\u91ca\u6389\u5c31\u4e0d\u4f1a\u8c03\u7528main_api\u91cc\u3002 &nbsp; 3 shop_config.php &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;$spt = &#8216; &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_name=&#8221; .urlencode($_CFG[&#8216;shop_name&#8217;]); &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_title=&#8221;.urlencode($_CFG[&#8216;shop_title&#8217;]); &nbsp; &nbsp;&nbsp; &nbsp;$spt .=&#8221;&amp;shop_desc=&#8221; .urlencode($_CFG[&#8216;shop_desc&#8217;]); &nbsp; &nbsp;&nbsp; &nbsp;$spt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-59020","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59020","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=59020"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59020\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59020"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59020"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}