{"id":199174,"date":"2025-05-03T09:31:14","date_gmt":"2025-05-03T01:31:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199174\/"},"modified":"2025-05-03T09:31:14","modified_gmt":"2025-05-03T01:31:14","slug":"%e4%bf%ae%e6%94%b9ecshop%e6%8e%a8%e8%8d%90%e6%b3%a8%e5%86%8c%e8%b5%a0%e9%80%81%e7%9a%84%e7%ad%89%e7%ba%a7%e7%a7%af%e5%88%86%e4%bf%ae%e6%94%b9%e4%b8%ba%e6%b6%88%e8%b4%b9%e7%a7%af","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199174\/","title":{"rendered":"\u4fee\u6539ecshop\u63a8\u8350\u6ce8\u518c\u8d60\u9001\u7684\u7b49\u7ea7\u79ef\u5206\u4fee\u6539\u4e3a\u6d88\u8d39\u79ef"},"content":{"rendered":"<p>&nbsp;<span style=\"line-height: 20px\">ecshop\u63a8\u8350\u6ce8\u518c\uff0c\u9ed8\u8ba4\u7684\u662f\u8d60\u9001\u7b49\u7ea7\u79ef\u5206\uff0c\u7279\u6b8a\u60c5\u51b5\u4e0b\u9700\u8981\u5c06\u8d60\u9001\u7684\u7b49\u7ea7\u79ef\u5206\u4fee\u6539\u4e3a\u6d88\u8d39\u79ef\u5206\u3002<\/span><span style=\"line-height: 20px\"> <\/span><\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">&nbsp;<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">\u597d\u6a21\u677f\u4fee\u6539\u5982\u4e0b\uff1a<\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">1\u3001\u6253\u5f00\u6587\u4ef6\uff1a<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">includes\/lib_passport.php<\/span><\/p>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">2\u3001\u627e\u5230\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n<blockquote style=\"margin-top: 5px;margin-right: 0px;margin-bottom: 5px;margin-left: 0px;padding-top: 8px;padding-right: 12px;padding-bottom: 8px;padding-left: 36px;background-image: url(http:\/\/www.pksafe.cn\/wp-content\/themes\/poetry\/img\/blockquote.gif);background-attachment: initial;border-top-width: 1px;border-right-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-top-style: dashed;border-right-style: dashed;border-bottom-style: dashed;border-left-style: dashed;background-position: 3px 3px;background-repeat: no-repeat no-repeat\">\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">&nbsp;\/\/ \u63a8\u8350\u5f00\u5173\u5f00\u542f<br \/> &nbsp;$up_uid&nbsp;&nbsp;&nbsp;&nbsp; = get_affiliate();<br \/> &nbsp;empty($affiliate) &amp;&amp; $affiliate = array();<br \/> &nbsp;$affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;] = intval($affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;]);<br \/> &nbsp;$affiliate[&#8216;config&#8217;][&#8216;level_register_up&#8217;] = intval($affiliate[&#8216;config&#8217;][&#8216;level_register_up&#8217;]);<br \/> &nbsp;if ($up_uid)<br \/> &nbsp;{<br \/> &nbsp;&nbsp;if (!empty($affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;]))<br \/> &nbsp;&nbsp;{<br \/> &nbsp;&nbsp;&nbsp;if (!empty($affiliate[&#8216;config&#8217;][&#8216;level_register_up&#8217;]))<br \/> &nbsp;&nbsp;&nbsp;{<br \/> &nbsp;&nbsp;&nbsp;&nbsp;$rank_points = $GLOBALS[&#8216;db&#8217;]-&gt;getOne(\u201dSELECT rank_points FROM \u201d . $GLOBALS[&#8216;ecs&#8217;]-&gt;table(\u2019users\u2019) . \u201d WHERE user_id = \u2018$up_uid\u2019\u201d);<br \/> &nbsp;&nbsp;&nbsp;&nbsp;if ($rank_points + $affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;] &lt;= $affiliate[&#8216;config&#8217;][&#8216;level_register_up&#8217;])<br \/> &nbsp;&nbsp;&nbsp;&nbsp;{<br \/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log_account_change($up_uid,&nbsp;<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\"><strong>0, 0, $affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;], 0<\/strong><\/span>, sprintf($GLOBALS[&#8216;_LANG&#8217;][&#8216;register_affiliate&#8217;], $_SESSION[&#8216;user_id&#8217;], $username));<br \/> &nbsp;&nbsp;&nbsp;&nbsp;}<br \/> &nbsp;&nbsp;&nbsp;}<br \/> &nbsp;&nbsp;&nbsp;else<br \/> &nbsp;&nbsp;&nbsp;{<br \/> &nbsp;&nbsp;&nbsp;&nbsp;log_account_change($up_uid,&nbsp;<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\"><strong>0, 0, $affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;], 0<\/strong><\/span>, $GLOBALS[&#8216;_LANG&#8217;][&#8216;register_affiliate&#8217;]);<br \/> &nbsp;&nbsp;&nbsp;}<br \/> }<\/p>\n<\/blockquote>\n<p style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 10px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">\u4ee3\u7801\u4e2d\uff1a<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">0,0,$affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;],0<\/span>&nbsp;\u8fd9\u4e0a\u9762\u7684\u6570\u5b57\u5206\u522b\u8868\u793a\uff1a\u53ef\u7528\u8d44\u91d1\u3001\u51bb\u7ed3\u8d44\u91d1\u3001\u7b49\u7ea7\u79ef\u5206\u3001\u6d88\u8d39\u79ef\u5206\uff0c\u56e0\u6b64\u4fee\u6539\u4e3a\uff1a<span style=\"margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px\">0,0,0,$affiliate[&#8216;config&#8217;][&#8216;level_register_all&#8217;]<\/span>\uff0c\u5373\u53ef\u5b9e\u73b0\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;ecshop\u63a8\u8350\u6ce8\u518c&#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-199174","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199174","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=199174"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199174\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}