{"id":199329,"date":"2025-05-03T13:04:28","date_gmt":"2025-05-03T05:04:28","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199329\/"},"modified":"2025-05-03T13:04:28","modified_gmt":"2025-05-03T05:04:28","slug":"%e8%a7%a3%e5%86%b3ecshop%e8%99%9a%e6%8b%9f%e5%8d%a1%e5%87%ba%e7%8e%b0%e6%98%9f%e5%8f%b7%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199329\/","title":{"rendered":"\u89e3\u51b3ecshop\u865a\u62df\u5361\u51fa\u73b0\u661f\u53f7\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u6240\u6709\u7684ecshop\u7684\u7248\u672c\u5f53\u4e2d\uff0c\u7f51\u7ad9\u642c\u5bb6\u6216\u8005\u4f7f\u7528LINUX\u4e3b\u673a,\u865a\u62df\u7269\u54c1\u5361\u53f7\u5bc6\u7801\u5168\u90e8\u53d8\u6210***\u5f88\u7a81\u7136\u3002\u6ca1\u6709\u8fdb\u884c\u4efb\u4f55\u540e\u53f0\u6539\u52a8\u3002\u6dfb\u52a0\u65b0\u4ea7\u54c1\u7684\u5361\u5bc6\u4e5f\u662f\u5982\u6b64<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/uploads\/allimg\/140818\/0253461138-0.jpg\" style=\"width: 666px;height: 430px\" class=\"aligncenter\"> <\/p>\n<p> \u5206\u6790ecshop\uff0c\u6211\u4eec\u53d1\u73b0<br \/>\n<br \/> <br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u53d1\u73b0\u662f\/admin\/virtual_card.php\u91cc \u6709\u5173\u4e8e\u661f\u53f7 \u770b\u7a0b\u5e8f\u540e \u53d1\u73b0\u662f\u7531include\/lib_code.php\u5173\u4e8e\u52a0\u5bc6\u89e3\u5bc6\u51fd\u6570\u63a7\u5236\u7684\u3002<\/span><br \/>\n<br \/> <br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">virtual_card.php \u63a7\u5236\u7684<\/span><br \/>\n<span style=\"cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid;font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px\">\u4ee3\u7801<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u5982\u4e0b<\/span>   <\/p>\n<ol>\n<li> &nbsp;&nbsp;foreach ($all AS $key =&gt; $row)<\/li>\n<li> &nbsp; &nbsp; {<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if ($row[&#8216;crc32&#8217;] == 0 || $row[&#8216;crc32&#8217;] == crc32(AUTH_KEY))<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;{<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_sn&#8217;]&nbsp; &nbsp;&nbsp; &nbsp; = decrypt($row[&#8216;card_sn&#8217;]);<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_password&#8217;] = decrypt($row[&#8216;card_password&#8217;]);<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;elseif ($row[&#8216;crc32&#8217;] == crc32(OLD_AUTH_KEY))<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;{<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_sn&#8217;]&nbsp; &nbsp;&nbsp; &nbsp; = decrypt($row[&#8216;card_sn&#8217;], OLD_AUTH_KEY);<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_password&#8217;] = decrypt($row[&#8216;card_password&#8217;], OLD_AUTH_KEY);<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;else<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;{<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_sn&#8217;]&nbsp; &nbsp;&nbsp; &nbsp; = &#8216;***&#8217;;<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;$row[&#8216;card_password&#8217;] = &#8216;***&#8217;;<\/li>\n<li> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<\/li>\n<\/ol>\n<p><span style=\"margin-left: 43px;font-size: 12px;cursor: pointer\">\u590d\u5236\u4ee3\u7801<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u6df1\u5165\u5206\u6790\u540e\u53d1\u73b0<\/span>   <\/p>\n<ol>\n<li> $row[&#8216;crc32&#8217;] == 0 || $row[&#8216;crc32&#8217;] == crc32(AUTH_KEY))<\/li>\n<\/ol>\n<p><span style=\"margin-left: 43px;font-size: 12px;cursor: pointer\">\u590d\u5236\u4ee3\u7801<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u4ee5\u53ca<\/span>   <\/p>\n<ol>\n<li> ($row[&#8216;crc32&#8217;] == crc32(OLD_AUTH_KEY))<\/li>\n<\/ol>\n<p><span style=\"margin-left: 43px;font-size: 12px;cursor: pointer\">\u590d\u5236\u4ee3\u7801<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u4e3b\u8981\u662f\u5224\u65ad<\/span><br \/>\n<span style=\"cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid;font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px\">\u6570\u636e\u5e93<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u4e2d\u5f97crc32\u5b57\u6bb5\u548c\u7ecf\u8fc7crc32\u52a0\u5bc6\u7684\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u81f4<\/span><br \/>\n<br \/> <br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u4f46\u662f\u53d1\u73b0<\/span><br \/>\n<br \/> <br \/>\n<span style=\"cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid;font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px\">\u6570\u636e<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u5e93\u4e2d\u7684crc32\u5b57\u7b26\u4e32\u548ccrc32\u52a0\u5bc6\u7684\u5b57\u7b26\u4e32<\/span><br \/>\n<font style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px\">&nbsp;\u5b8c\u5168\u4e0d\u4e00\u6837<\/font><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u6240\u4ee5\u5bfc\u81f4\u4e86 \u51fa\u73b0\u5361\u53f7\u548c\u5361\u5bc6\u4e3a\u661f\u53f7\u7684\u95ee\u9898<\/span><br \/>\n<br \/> <br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u6bd4\u5982\u6211\u4eec\u52a0\u5bc6\u5b57\u7b26\u4e32<\/span><br \/>\n<span style=\"cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid;font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px\">\u8bbe\u7f6e<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u7684\u662f456&nbsp;&nbsp;\u6570\u636e\u5e93\u4e2d\u7684crc32 \u663e\u793a\u4e3a 2147483647&nbsp;&nbsp;\u800c<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u6211\u4eec<\/span><br \/>\n<span style=\"font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 14px;line-height: 22.399999618530273px\">\u76f4\u63a5\u4ee3\u7801crc32\u51fa\u6765\u7684\u503c\u4e3a 2980627313 \u6240\u4ee5\u5bfc\u81f4\u4e86 \u5361\u53f7\u663e\u793a\u4e3a\u4e09\u4e2a***<\/p>\n<p> \u5176\u5b9e\u8be5\u95ee\u9898\u4ee5linux \u65f6\u95f4\u6233\u95ee\u9898\u5f15\u8d77\uff0c\u89e3\u51b3\u529e\u6cd5\u5f88\u7b80\u5355<\/span><br \/>\n<br \/> <br \/>\n<strong><span style=\"color:#ff0000\">UPDATE&nbsp;<\/span><span style=\"color:#ff0000\">virtual_card<\/span><span style=\"color:#ff0000\">&nbsp;SET&nbsp;<span style=\"font-family: sans-serif;font-size: 13px;font-weight: bold\">crc32 = \u20180\u2019<\/span><\/span><\/strong><br \/>\n <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6240\u6709\u7684ecshop\u7684\u7248\u672c\u5f53\u4e2d\uff0c&#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-199329","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199329","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=199329"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199329\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}