public function setGenerate($session_uid)
{
return $this->pdo('update users set hit = if(hit < hit_max, (if(hit + timestampdiff(second, hit_up, now()) * hit_reg > hit_max, hit_max, hit + timestampdiff(second, hit_up, now()) * hit_reg)), hit) where id = ? limit 1', [
$session_uid
]);
}
hit + timestampdiff(second, hit_up, now()) * hit_reg