void poststat(int mytype) { get_top(mytype); writestat(mytype); if(mytype==0) backup_top(); gen_hot_subjects_xml(mytype); if(mytype==0) gen_secs_hot_subjects_xml(mytype); if(mytype==0) log_top(); }
void poststat(int mytype) { #ifdef REDIS //KBS 统计十大失败时,不更新十大数据 if (get_top(mytype) == 0) return; #else get_top(mytype); #endif /* REDIS */ writestat(mytype); if (mytype==0) backup_top(); gen_hot_subjects_xml(mytype); if (mytype==0) gen_secs_hot_subjects_xml(mytype); if (mytype==0) log_top(); }