adjust
This commit is contained in:
parent
60a026f6ee
commit
fb4ab9e5c8
@ -464,9 +464,12 @@ class RoleController
|
||||
$p1 = $this->getParameter(INITIAL_WEAPON);
|
||||
$weapons = explode('|', $p1['param_value']);
|
||||
$addreward = new classes\AddReward();
|
||||
foreach($weapons as $itemid) {
|
||||
$addreward->addReward($itemid, 1, $account_id, 0, 0);
|
||||
}
|
||||
foreach ($weapons as $itemstr) {
|
||||
$strs = explode(':', $itemstr);
|
||||
$itemid = $strs[0];
|
||||
$itemnum = count($strs) > 1 ? $strs[1] : 1;
|
||||
$addreward->addReward($itemid, $itemnum, $account_id, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user