{"id":59823,"date":"2025-04-24T09:58:22","date_gmt":"2025-04-24T01:58:22","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59823\/"},"modified":"2025-04-24T09:58:22","modified_gmt":"2025-04-24T01:58:22","slug":"%e5%9c%a8ecshop%e5%95%86%e5%93%81%e9%a1%b5%e5%8f%91%e8%a1%a8%e8%af%84%e8%ae%ba%e6%97%b6%e5%8f%96%e6%b6%88e-mail%e5%bf%85%e5%a1%ab%e7%9a%84%e6%96%b9-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59823\/","title":{"rendered":"\u5728ECSHOP\u5546\u54c1\u9875\u53d1\u8868\u8bc4\u8bba\u65f6\u201c\u53d6\u6d88E-MAIL\u5fc5\u586b\u201d\u7684\u65b9"},"content":{"rendered":"<p>ECSHOP\u7684\u5546\u54c1\u8be6\u60c5\u9875\uff0c\u5728\u7528\u6237\u63d0\u4ea4\u8bc4\u8bba\u7684\u65f6\u5019\uff0c\u90a3\u4e2a\u201cE-MAIL\u201d\u8f93\u5165\u6846\u9ed8\u8ba4\u662f\u201c\u5fc5\u586b\u201d\u7684\u3002<br \/> \u5982\u679c\u6211\u60f3\u6539\u6210\u201cE-MAIL\u975e\u5fc5\u586b\u201d\u6216\u8005\u5e72\u8106\u201c\u5220\u9664\u8fd9\u4e2aE-MAIL\u8f93\u5165\u6846\u201d\uff0c\u8981\u5982\u4f55\u4fee\u6539\u624d\u80fd\u8fbe\u5230\u6548\u679c\u5462\uff1f\uff1f<\/p>\n<p> \u4e0b\u9762\u4ee5ECSHOP 2.7.2 \u5b98\u65b9\u9ed8\u8ba4\u6a21\u677f\u4e3a\u57fa\u7840\u8fdb\u884c\u8bb2\u89e3\u8bf4\u660e\u3002<\/p>\n<p> <strong>\u5c06E-MAIL\u6539\u6210\u975e\u5fc5\u586b\u9879\u7684\u65b9\u6cd5\uff1a\uff08\u4e5f\u5c31\u662f\u8bf4\u4fdd\u7559\u90a3\u4e2aE-MAIL\u8f93\u5165\u6846\uff0c\u4f46\u662f\u7528\u6237\u4e0d\u586b\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4ea4\uff09<\/p>\n<p> <\/strong>\u7b2c1\u6b65\uff1a<\/p>\n<p> \u6253\u5f00 \/themes\/default\/library\/comments_list.lbi <span>\u6587\u4ef6<\/p>\n<p> \u627e\u5230\u5e76\u5220\u9664\u4e0b\u9762\u4ee3\u7801 <\/span><\/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>&nbsp; if (cmt.email.length &gt; 0)<br \/> &nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp; if (!(Utils.isEmail(cmt.email)))<br \/> &nbsp;&nbsp;&nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(cmt_error_email);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br \/> &nbsp;&nbsp; }<br \/> &nbsp;&nbsp; else<br \/> &nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(cmt_empty_email);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br \/> &nbsp;&nbsp; }<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u7b2c2\u6b65\uff1a<br \/>\n<br \/> \u6253\u5f00&nbsp;\/comment.php \u6587\u4ef6<br \/>\n<br \/> \u627e\u5230\u5e76\u5220\u9664\u4e0b\u9762\u4ee3\u7801<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><font>&nbsp;elseif (!is_email($cmt-&gt;email))<br \/> &nbsp;&nbsp;&nbsp; {<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $result[&#8216;error&#8217;]&nbsp;&nbsp; = 1;<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $result[&#8216;message&#8217;] = $_LANG[&#8216;error_email&#8217;];<br \/> &nbsp;&nbsp;&nbsp; }<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <br \/>\n<span style=\"font-size: x-small;color: #3366ff\">\u6ce8\u610f\uff0c\u7b2c 1\u30012 \u6b65\u7684\u64cd\u4f5c\u662f\u6ca1\u6709\u5220\u9664 E-MAIL&nbsp;\u8f93\u5165\u6846\u7684\uff0c\u53ea\u662f\u5c06E-MAIL \u6539\u6210\u4e86 \u201c\u975e\u5fc5\u586b\u9879\u201d\uff0c<br \/> \u5982\u679c\u4f60\u60f3\u5e72\u8106\u5220\u9664 E-MAIL&nbsp;\u8f93\u5165\u6846\uff0c\u8bf7\u7ee7\u7eed\u770b \u7b2c 3 \u6b65\u3002<\/p>\n<p> <\/span>\u7b2c3\u6b65\uff1a<\/p>\n<p> \u5982\u679c\u60a8\u60f3\u5e72\u8106\u5220\u9664 e-mail \u90a3\u4e00\u680f\uff0c\u90a3\u4e48\u5728\u505a\u5b8c\u524d\u4e24\u6b65\u4fee\u6539\u540e\u7ee7\u7eed\u8fdb\u884c\u5982\u4e0b\u4fee\u6539\u5373\u53ef<br \/>\n<br \/> \u6253\u5f00&nbsp;\/themes\/default\/library\/comments_list.lbi<br \/>\n<br \/> \u5c06<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><font>&lt;tr&gt;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;td align=&#8221;right&#8221;&gt;E-mail\uff1a&lt;\/td&gt;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;td&gt;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;input type=&#8221;text&#8221; name=&#8221;email&#8221; id=&#8221;email&#8221;&nbsp;&nbsp;maxlength=&#8221;100&#8243; value=&#8221;{$smarty.session.email|escape}&#8221; class=&#8221;inputBorder&#8221;\/&gt;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;\/td&gt;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;\/tr&gt;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u5220\u9664\uff0c<br \/>\n<br \/> \u7ee7\u7eed\u5c06<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><font>cmt.email&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;= frm.elements[&#8217;email&#8217;].value;<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> \u4e5f\u5220\u9664\uff0c<br \/>\n<br \/> \u7136\u540e\u5230\u540e\u53f0\u6e05\u9664\u4e0b\u7f13\u5b58<br \/>\n<br \/> &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ECSHOP\u7684\u5546\u54c1\u8be6\u60c5\u9875\uff0c\u5728\u7528\u6237\u63d0\u4ea4\u8bc4\u8bba\u7684\u65f6\u5019\uff0c\u90a3\u4e2a\u201cE-MAIL\u201d\u8f93\u5165\u6846\u9ed8\u8ba4\u662f\u201c\u5fc5\u586b\u201d\u7684\u3002 \u5982\u679c\u6211\u60f3\u6539\u6210\u201cE-MAIL\u975e\u5fc5\u586b\u201d\u6216\u8005\u5e72\u8106\u201c\u5220\u9664\u8fd9\u4e2aE-MAIL\u8f93\u5165\u6846\u201d\uff0c\u8981\u5982\u4f55\u4fee\u6539\u624d\u80fd\u8fbe\u5230\u6548\u679c\u5462\uff1f\uff1f \u4e0b\u9762\u4ee5ECSHOP 2.7.2 \u5b98\u65b9\u9ed8\u8ba4\u6a21\u677f\u4e3a\u57fa\u7840\u8fdb\u884c\u8bb2\u89e3\u8bf4\u660e\u3002 \u5c06E-MAIL\u6539\u6210\u975e\u5fc5\u586b\u9879\u7684\u65b9\u6cd5\uff1a\uff08\u4e5f\u5c31\u662f\u8bf4\u4fdd\u7559\u90a3\u4e2aE-MAIL\u8f93\u5165\u6846\uff0c\u4f46\u662f\u7528\u6237\u4e0d\u586b\uff0c\u4e5f\u53ef\u4ee5\u63d0\u4ea4\uff09 \u7b2c1\u6b65\uff1a \u6253\u5f00 \/themes\/default\/library\/comments_list.lbi \u6587\u4ef6 \u627e\u5230\u5e76\u5220\u9664\u4e0b\u9762\u4ee3\u7801 &nbsp; if (cmt.email.length &gt; 0) &nbsp; { &nbsp;&nbsp;&nbsp;&nbsp; if (!(Utils.isEmail(cmt.email))) &nbsp;&nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(cmt_error_email); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp; } &nbsp;&nbsp; else &nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alert(cmt_empty_email); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false; &nbsp;&nbsp; } \u7b2c2\u6b65\uff1a \u6253\u5f00&nbsp;\/comment.php \u6587\u4ef6 \u627e\u5230\u5e76\u5220\u9664\u4e0b\u9762\u4ee3\u7801 &nbsp;elseif (!is_email($cmt-&gt;email)) &nbsp;&nbsp;&nbsp; { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $result[&#8216;error&#8217;]&nbsp;&nbsp; = 1; [&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-59823","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59823","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=59823"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59823\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}