这里会显示出您选择的修订版和当前版本之间的差别。
— |
zblogphp:development:plugin:interfacestc:filter_plugin_postpage_succeed [2020/07/27 17:57] (当前版本) 唐朝 创建 |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | 案例(首次提交页面送10积分): | ||
+ | <code php> | ||
+ | function ActivePlugin_tc_cs() { | ||
+ | Add_Filter_Plugin('Filter_Plugin_PostPage_Succeed','ytecn_postpage_succeed'); | ||
+ | } | ||
+ | function ytecn_postpage_succeed(&$article) { | ||
+ | $data = array( | ||
+ | 'pid' => $article->ID, | ||
+ | 'title' => "提交页面送10积分", | ||
+ | 'num' => 10, | ||
+ | 'Time' => time() | ||
+ | ); | ||
+ | $sql_in = $zbp->db->sql->Insert('%pre%user_jf_log',$data); | ||
+ | $zbp->db->Insert($sql_in); | ||
+ | } | ||
+ | </code> |