$query = $db->query("SELECT uid, count( uid ) as cuid FROM cdb_promotions GROUP BY uid HAVING count( uid ) >30");
while($adcheat = $db->fetch_array($query)) {
if($adcheat[cuid]){
$cheat.='uid:'.$adcheat[uid].','.'单日次数:'.$adcheat[cuid].'|';
}
}
if($cheat){
$db->query("UPDATE {$tablepre}members SET newpm='1' WHERE uid='1'");
$db->query("INSERT INTO {$tablepre}pms (msgfrom, msgfromid, msgtoid, folder, new, subject, dateline, message)
VALUES ('System Message', '0', '1', 'inbox', '1', '宣传中心可疑名单', '$timestamp','$cheat')");
}
if(is_array($uidarray)) {
foreach($uidarray as $value){
$db->query("UPDATE {$tablepre}members SET advisit=advisit+'1' WHERE uid='$value'");
}
}
明白了~
但如果有人确实推广了40个,那怎么样判断是否作弊呢? |