fix
This commit is contained in:
parent
134607115b
commit
ac304dacca
@ -1821,8 +1821,9 @@ class ActivityController
|
||||
$onedraw = !isset($_REQUEST['type']) || $_REQUEST['type'] == 0;
|
||||
$cost_strings = $onedraw ? explode(":", $dr["onecost"]) : explode(":", $dr['tencost']);
|
||||
if (sizeof($cost_strings) > 1) {
|
||||
$costid = $cost_strings[1];
|
||||
$count = $cost_strings[1];
|
||||
if ($cost_strings[0] == 10003) {
|
||||
if ($costid == 10003) {
|
||||
$row = $conn->execQueryOne(
|
||||
'SELECT diamond_num, first_gift, free_coin, free_diamond FROM user WHERE accountid=:accountid;',
|
||||
array(
|
||||
@ -1859,7 +1860,7 @@ class ActivityController
|
||||
'SELECT num FROM bag WHERE accountid=:accountid AND id=:id;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
':id' => $cost_strings[0]
|
||||
':id' => $costid
|
||||
)
|
||||
);
|
||||
|
||||
@ -1873,7 +1874,7 @@ class ActivityController
|
||||
' WHERE accountid=:accountid AND id=:id;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
'id' => $id,
|
||||
':id' => $costid,
|
||||
':num' => $row['num'] - $count,
|
||||
':modify_time' => time()
|
||||
)
|
||||
@ -1909,7 +1910,7 @@ class ActivityController
|
||||
return;
|
||||
}
|
||||
|
||||
if ($onedraw){
|
||||
if ($onedraw) {
|
||||
$item_list = metatable\getDropAllListById($drop_id, $item_list);
|
||||
} else {
|
||||
for ($j = 0; $j < 10; $j++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user