1
This commit is contained in:
parent
2a701b3fef
commit
0c5d3c7d36
@ -312,6 +312,10 @@ class TankController{
|
|||||||
':accountid' => $account_id,
|
':accountid' => $account_id,
|
||||||
':tank_id' => $exchangetank_id,
|
':tank_id' => $exchangetank_id,
|
||||||
));
|
));
|
||||||
|
if (!$row_exchange) {
|
||||||
|
phpcommon\sendError(ERR_USER_BASE + 2, '没有这个皮肤');
|
||||||
|
return;
|
||||||
|
}
|
||||||
$exchange_ret = $conn->execScript('UPDATE tank SET tank_status=0, modify_time=:modify_time ' .
|
$exchange_ret = $conn->execScript('UPDATE tank SET tank_status=0, modify_time=:modify_time ' .
|
||||||
' WHERE accountid = :account_id AND tank_id = :tank_id;',
|
' WHERE accountid = :account_id AND tank_id = :tank_id;',
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user