fix
This commit is contained in:
parent
a1e8fd2b66
commit
4d26de02e0
@ -423,7 +423,7 @@ class AddReward {
|
|||||||
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
|
phpcommon\sendError(ERR_USER_BASE + 1, '没有这个玩家');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
$status = 2;
|
$status = 1;
|
||||||
$active_time = $time * 3600 + time();
|
$active_time = $time * 3600 + time();
|
||||||
$row = $conn->execQueryOne('SELECT * FROM bag WHERE accountid=:accountid AND id=:id;',
|
$row = $conn->execQueryOne('SELECT * FROM bag WHERE accountid=:accountid AND id=:id;',
|
||||||
array(
|
array(
|
||||||
@ -474,7 +474,9 @@ class AddReward {
|
|||||||
if ($row['active_time'] < time() + $time * 3600) {
|
if ($row['active_time'] < time() + $time * 3600) {
|
||||||
$nowTime = time() + $time * 3600;
|
$nowTime = time() + $time * 3600;
|
||||||
}
|
}
|
||||||
$status = 1;
|
if ($status == 2) {
|
||||||
|
$status = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($t == 0) {
|
if ($t == 0) {
|
||||||
$status = $this->getStatus($item_id, $status,$accountid);
|
$status = $this->getStatus($item_id, $status,$accountid);
|
||||||
@ -528,7 +530,7 @@ class AddReward {
|
|||||||
':accountid' => $accountid,
|
':accountid' => $accountid,
|
||||||
':id' => $id,
|
':id' => $id,
|
||||||
));
|
));
|
||||||
if ($row['status'] != 0 || !$row) {
|
if (!$row || $row['status'] != 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$flag = 1;
|
$flag = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user