{"id":199407,"date":"2025-05-03T10:50:39","date_gmt":"2025-05-03T02:50:39","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199407\/"},"modified":"2025-05-03T10:50:39","modified_gmt":"2025-05-03T02:50:39","slug":"%e5%8e%bb%e9%99%a4ecshop%e5%90%8e%e5%8f%b0%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%e6%8f%90%e7%a4%ba%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199407\/","title":{"rendered":"\u53bb\u9664ecshop\u540e\u53f0\u6700\u65b0\u7248\u672c\u63d0\u793a\u4fe1\u606f"},"content":{"rendered":"<p> \u6253\u5f00&nbsp;<\/p>\n<p> admin\/index.php \u5220\u9664\u5982\u4e0b<\/p>\n<p> &nbsp;<\/p>\n<p> \/* \u5982\u679c\u7ba1\u7406\u5458\u7684\u6700\u540e\u767b\u9646\u65f6\u95f4\u5927\u4e8e24\u5c0f\u65f6\u5219\u68c0\u67e5\u6700\u65b0\u7248\u672c *\/<br \/> &nbsp;&nbsp;&nbsp; if (gmtime() &#8211; $_SESSION[&#8216;last_check&#8217;] &gt; (3600 * 12))<br \/> &nbsp;&nbsp;&nbsp; {<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include_once(ROOT_PATH . &#8216;includes\/cls_transport.php&#8217;);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_version = VERSION;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_lang = $_CFG[&#8216;lang&#8217;];<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_release = RELEASE;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $php_ver = PHP_VERSION;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $mysql_ver = $db-&gt;version();<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $order[&#8216;stats&#8217;] = $db-&gt;getRow(&#8216;SELECT COUNT(*) AS oCount, IFNULL(SUM(order_amount), 0) AS oAmount&#8217; .<br \/> &nbsp;&nbsp;&nbsp; &#8216; FROM &#8216; .$ecs-&gt;table(&#8216;order_info&#8217;));<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ocount = $order[&#8216;stats&#8217;][&#8216;oCount&#8217;];<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $oamount = $order[&#8216;stats&#8217;][&#8216;oAmount&#8217;];<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $goods[&#8216;total&#8217;]&nbsp;&nbsp; = $db-&gt;GetOne(&#8216;SELECT COUNT(*) FROM &#8216; .$ecs-&gt;table(&#8216;goods&#8217;).<br \/> &nbsp;&nbsp;&nbsp; &#8216; WHERE is_delete = 0 AND is_alone_sale = 1 AND is_real = 1&#8217;);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $gcount = $goods[&#8216;total&#8217;];<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_charset = strtoupper(EC_CHARSET);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_user = $db-&gt;getOne(&#8216;SELECT COUNT(*) FROM &#8216; . $ecs-&gt;table(&#8216;users&#8217;));<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_template = $db-&gt;getOne(&#8216;SELECT value FROM &#8216; . $ecs-&gt;table(&#8216;shop_config&#8217;) . &#8216; WHERE code = \\&#8217;template\\&#8221;);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $style = $db-&gt;getOne(&#8216;SELECT value FROM &#8216; . $ecs-&gt;table(&#8216;shop_config&#8217;) . &#8216; WHERE code = \\&#8217;stylename\\&#8221;);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if($style == &#8221;)<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $style = &#8216;0&#8217;;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ecs_style = $style;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $shop_url = urlencode($ecs-&gt;url());<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $apiget = &#8220;ver= $ecs_version &amp;lang= $ecs_lang &amp;release= $ecs_release &amp;php_ver= $php_ver &amp;mysql_ver= $mysql_ver &amp;ocount= $ocount &amp;oamount= $oamount &amp;gcount= $gcount &amp;charset= $ecs_charset &amp;usecount= $ecs_user &amp;template= $ecs_template &amp;style= $ecs_style &amp;url= $shop_url &#8220;;<\/p>\n<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $t = new transport;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $api_comment = $t-&gt;request(&#8216;http:\/\/api.ecshop.com\/checkver.php&#8217;, $apiget);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $api_str = $api_comment[&#8220;body&#8221;];<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo $api_str;<br \/> &nbsp;&nbsp;&nbsp; }<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6253\u5f00&nbsp; admin\/i&#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-199407","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199407","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=199407"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199407\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}