1
This commit is contained in:
parent
53cbbcfeb4
commit
f3c12a9555
@ -256,7 +256,7 @@ class SkinController{
|
||||
return;
|
||||
}
|
||||
$status = 1;
|
||||
$using_ret = $conn->execScript('UPDATE skin SET skin_status=:1, modify_time=:modify_time ' .
|
||||
$using_ret = $conn->execScript('UPDATE skin SET skin_status=1, modify_time=:modify_time ' .
|
||||
' WHERE accountid = :account_id AND skin_id = :skin_id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
@ -274,7 +274,7 @@ class SkinController{
|
||||
'skin_status' => 1,
|
||||
));
|
||||
//准备上阵的皮肤
|
||||
$row_exchange = $conn->execQueryOne('SELECT skin_status FROM commander WHERE accountid=:accountid AND skin_id=:skin_id;',
|
||||
$row_exchange = $conn->execQueryOne('SELECT skin_status FROM skin WHERE accountid=:accountid AND skin_id=:skin_id;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
':skin_id' => $exchangeskin_id,
|
||||
|
@ -389,7 +389,7 @@ class TankController{
|
||||
':experience_type' => $ex_type,
|
||||
':modify_time' => time()
|
||||
));
|
||||
if(!$ret){
|
||||
if (!$ret) {
|
||||
die();
|
||||
return;
|
||||
}
|
||||
@ -427,7 +427,7 @@ class TankController{
|
||||
phpcommon\sendError(ERR_USER_BASE + 1, '坦克不存在');
|
||||
return;
|
||||
}
|
||||
$t = $this->getSkin($tank_id);
|
||||
$t = $this->getTank($tank_id);
|
||||
if (!$t) {
|
||||
phpcommon\sendError(ERR_USER_BASE + 2, '没有这个坦克');
|
||||
return;
|
||||
@ -444,7 +444,7 @@ class TankController{
|
||||
phpcommon\sendError(ERR_USER_BASE + 4, '坦克碎片数量不足');
|
||||
return;
|
||||
}
|
||||
$ret = $conn->execScript('UPDATE tank SET tank_level=:tank_level, modify_time=:modify_time ' .
|
||||
$ret = $conn->execScript('UPDATE tank SET tank_level=:tank_level, fragment_num=:fragment_num, modify_time=:modify_time ' .
|
||||
' WHERE accountid=:account_id AND tank_id=:tank_id;',
|
||||
array(
|
||||
':account_id' => $account_id,
|
||||
@ -465,7 +465,7 @@ class TankController{
|
||||
echo json_encode(array(
|
||||
'errcode' => 0,
|
||||
'errmsg' => '',
|
||||
'tank_id' => $row['tank_id'],
|
||||
'tank_id' => $tank_id,
|
||||
'tank_level' => $row['tank_level'] + 1,
|
||||
"fragment_id" => $row['fragment_id'],
|
||||
"fragment_num" => $row['fragment_num'] - $coin_num,
|
||||
|
Loading…
x
Reference in New Issue
Block a user