This commit is contained in:
yangduo 2025-02-21 19:34:45 +08:00
parent a1e8fd2b66
commit 4d26de02e0

View File

@ -423,7 +423,7 @@ class AddReward {
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
die();
}
$status = 2;
$status = 1;
$active_time = $time * 3600 + time();
$row = $conn->execQueryOne('SELECT * FROM bag WHERE accountid=:accountid AND id=:id;',
array(
@ -474,8 +474,10 @@ class AddReward {
if ($row['active_time'] < time() + $time * 3600) {
$nowTime = time() + $time * 3600;
}
if ($status == 2) {
$status = 1;
}
}
if ($t == 0) {
$status = $this->getStatus($item_id, $status,$accountid);
} else if ($t == 1){
@ -528,7 +530,7 @@ class AddReward {
':accountid' => $accountid,
':id' => $id,
));
if ($row['status'] != 0 || !$row) {
if (!$row || $row['status'] != 0) {
continue;
}
$flag = 1;