This commit is contained in:
yangduo 2025-02-10 16:07:19 +08:00
parent 2cb0b2e2df
commit 44998b7575

View File

@ -471,12 +471,15 @@ class AddReward {
$status = 1; $status = 1;
} }
} else { } else {
if ($row['active_time'] < time() + $time * 3600) { if ($row['active_time'] > 0 && $row['active_time'] < time() + $time * 3600) {
$nowTime = time() + $time * 3600; $nowTime = time() + $time * 3600;
} }
} }
if ($t == 0) { if ($t == 0) {
$status = $this->getStatus($item_id, $status,$accountid); $status = $this->getStatus($item_id, $status,$accountid);
if ($status == 2 && $nowTime > time()) {
$status = 1;
}
} else if ($t == 1){ } else if ($t == 1){
$status = 0; $status = 0;
$this->updateStatus($item_id, $accountid); $this->updateStatus($item_id, $accountid);