Z-Blog Wiki Z-Blog Wiki

Z-Blog官方文库

用户工具

站点工具


zblogphp:development:plugin:interfacestc:filter_plugin_postarticle_succeed

案例(首次提交文章送10积分):

function ActivePlugin_tc_cs() {
    Add_Filter_Plugin('Filter_Plugin_PostArticle_Succeed','ytecn_PostArticle_Succeed');
}
 
function ytecn_PostArticle_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);
}

zblogphp/development/plugin/interfacestc/filter_plugin_postarticle_succeed.txt · 最后更改: 2020/07/25 15:34 由 唐朝