{"id":59129,"date":"2025-04-23T11:43:36","date_gmt":"2025-04-23T03:43:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59129\/"},"modified":"2025-04-23T11:43:36","modified_gmt":"2025-04-23T03:43:36","slug":"%e5%88%97%e8%a1%a8%e9%a1%b5%e5%87%ba%e7%8e%b0%e3%80%90%e4%be%8b%e5%a4%96%e8%a2%ab%e6%8a%9b%e5%87%ba%e4%b8%94%e6%9c%aa%e8%a2%ab%e6%8e%a5%e4%bd%8f%e3%80%91%e7%9a%84%e5%8e%9f%e5%9b%a0%e4%b9%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59129\/","title":{"rendered":"\u5217\u8868\u9875\u51fa\u73b0\u3010\u4f8b\u5916\u88ab\u629b\u51fa\u4e14\u672a\u88ab\u63a5\u4f4f\u3011\u7684\u539f\u56e0\u4e4b"},"content":{"rendered":"<p>\u4eca\u65e5\u5728\u672c\u5730\u7535\u8111\u4e0a\u5e03\u7f6eECSHOP2.7.2\u540e\uff0c\u53d1\u73b0\u5728\u5546\u54c1\u5217\u8868\u9875\u70b9\u51fb\u201c\u8d2d\u4e70\u201d\u5c45\u7136\u65e0\u53cd\u6620\uff0c\u800c\u4e14\u6709JS\u9519\u8bef\u63d0\u793a\u201c\u4f8b\u5916\u88ab\u629b\u51fa\u4e14\u672a\u88ab\u63a5\u4f4f\u201d \u3002<br \/> \u4e8e\u662f\u6253\u5f00\u6211\u7684 \u706b\u72d0\u6d4f\u89c8\u5668\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u663e\u793a\u51fa\u706b\u72d0\u6d4f\u89c8\u5668\u7684\u5a01\u529b\u6765\u4e86\u3002<br \/> \u70b9\u51fb\u201c\u5de5\u5177\u201d\u83dc\u5355\u9879\uff0c\u6253\u5f00\u201c\u9519\u8bef\u63a7\u5236\u53f0\u201d\uff0c\u70b9\u201c\u6e05\u9664\u201d\u5148\u628a\u4ee5\u5f80\u7684\u9519\u8bef\u4fe1\u606f\u6e05\u9664\u6389\u3002<br \/> \u7136\u540e\u7528\u706b\u72d0\u6d4f\u89c8\u5668\u6253\u5f00\u521a\u624d\u62a5JS\u9519\u8bef\u7684\u5546\u54c1\u5217\u8868\u9875\uff0c\u6253\u5f00\u540e\uff0c\u518d\u53bb\u201c\u9519\u8bef\u63a7\u5236\u53f0\u201d\u67e5\u770b\u9519\u8bef\u4fe1\u606f\u3002\u679c\u7136\u6709\u9519\u8bef\u3002<\/p>\n<p> <span style=\"background-color: #ccffff\">&lt;b&gt;Warning&lt;\/b&gt;:&nbsp; number_format() expects parameter 1 to be double, string given in &lt;b&gt;D:\\WWWROOT\\utf272.ecshop.com\\includes\\lib_common.php&lt;\/b&gt; on line &lt;b&gt;960&lt;\/b&gt;&lt;br \/&gt;<br \/> <\/span><\/p>\n<p> \u770b\u5230\u4ee5\u4e0a\u9519\u8bef\u4fe1\u606f\uff0c\u76f8\u4fe1\u61c2PHP\u7684\u670b\u53cb\u5c31\u77e5\u9053\u8be5\u600e\u4e48\u89e3\u51b3\u4e86\u3002\u6211\u662f\u8fd9\u4e48\u89e3\u51b3\u7684\u3002<\/p>\n<p> \u6253\u5f00 \/includes\/lib_common.php \u6587\u4ef6 <\/p>\n<p> \u5927\u6982\u5728 950\u884c\u5de6\u53f3<\/p>\n<p> \u5c06 <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><font>else<br \/> &nbsp;&nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price = number_format($price, 2, &#8216;.&#8217;, &#8221;);<br \/> &nbsp;&nbsp;&nbsp; }<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4fee\u6539\u4e3a<br \/>\n <\/p>\n<table cellspacing=\"0\" cellpadding=\"5\" style=\"border-right: #cccccc 1px solid;border-top: #cccccc 1px solid;background: #f7f7f7;border-left: #cccccc 1px solid;width: 90%;border-bottom: #cccccc 1px solid\">\n<tbody>\n<tr>\n<td><span style=\"color: #ff0000\">else<br \/> &nbsp;&nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!$price){<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price = 0;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price = number_format($price, 2, &#8216;.&#8217;, &#8221;);<br \/> &nbsp;&nbsp;&nbsp; }<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u6ce8\u610f\uff1a\u4ee5\u4e0a\u53ea\u662f\u51fa\u73b0\u201c\u4f8b\u5916\u88ab\u629b\u51fa\u4e14\u672a\u88ab\u63a5\u4f4f\u201d\u7684\u4e00\u79cd\u539f\u56e0\uff0c\u4e5f\u8bb8\u4f60\u7684\u4f1a\u662f\u53e6\u5916\u7684\u539f\u56e0\u3002<br \/>\n<br \/> \u4f46\u662f\u4e0a\u8ff0\u89e3\u51b3\u601d\u8def\u662f\u53ef\u4ee5\u501f\u9274\u7684\uff0c\u5c31\u662f\u5229\u7528\u706b\u72d0\u6d4f\u89c8\u5668\u7684\u9519\u8bef\u63a7\u5236\u53f0\u627e\u5230\u9519\u8bef\u539f\u56e0\uff0c\u7136\u540e\u5c31\u5bb9\u6613\u89e3\u51b3\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u5728\u672c\u5730\u7535\u8111\u4e0a\u5e03\u7f6eECSHOP2.7.2\u540e\uff0c\u53d1\u73b0\u5728\u5546\u54c1\u5217\u8868\u9875\u70b9\u51fb\u201c\u8d2d\u4e70\u201d\u5c45\u7136\u65e0\u53cd\u6620\uff0c\u800c\u4e14\u6709JS\u9519\u8bef\u63d0\u793a\u201c\u4f8b\u5916\u88ab\u629b\u51fa\u4e14\u672a\u88ab\u63a5\u4f4f\u201d \u3002 \u4e8e\u662f\u6253\u5f00\u6211\u7684 \u706b\u72d0\u6d4f\u89c8\u5668\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u663e\u793a\u51fa\u706b\u72d0\u6d4f\u89c8\u5668\u7684\u5a01\u529b\u6765\u4e86\u3002 \u70b9\u51fb\u201c\u5de5\u5177\u201d\u83dc\u5355\u9879\uff0c\u6253\u5f00\u201c\u9519\u8bef\u63a7\u5236\u53f0\u201d\uff0c\u70b9\u201c\u6e05\u9664\u201d\u5148\u628a\u4ee5\u5f80\u7684\u9519\u8bef\u4fe1\u606f\u6e05\u9664\u6389\u3002 \u7136\u540e\u7528\u706b\u72d0\u6d4f\u89c8\u5668\u6253\u5f00\u521a\u624d\u62a5JS\u9519\u8bef\u7684\u5546\u54c1\u5217\u8868\u9875\uff0c\u6253\u5f00\u540e\uff0c\u518d\u53bb\u201c\u9519\u8bef\u63a7\u5236\u53f0\u201d\u67e5\u770b\u9519\u8bef\u4fe1\u606f\u3002\u679c\u7136\u6709\u9519\u8bef\u3002 &lt;b&gt;Warning&lt;\/b&gt;:&nbsp; number_format() expects parameter 1 to be double, string given in &lt;b&gt;D:\\WWWROOT\\utf272.ecshop.com\\includes\\lib_common.php&lt;\/b&gt; on line &lt;b&gt;960&lt;\/b&gt;&lt;br \/&gt; \u770b\u5230\u4ee5\u4e0a\u9519\u8bef\u4fe1\u606f\uff0c\u76f8\u4fe1\u61c2PHP\u7684\u670b\u53cb\u5c31\u77e5\u9053\u8be5\u600e\u4e48\u89e3\u51b3\u4e86\u3002\u6211\u662f\u8fd9\u4e48\u89e3\u51b3\u7684\u3002 \u6253\u5f00 \/includes\/lib_common.php \u6587\u4ef6 \u5927\u6982\u5728 950\u884c\u5de6\u53f3 \u5c06 else &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price = number_format($price, 2, &#8216;.&#8217;, &#8221;); &nbsp;&nbsp;&nbsp; } \u4fee\u6539\u4e3a else &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(!$price){ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price = 0; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $price [&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-59129","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59129","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=59129"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59129\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}