...
This commit is contained in:
parent
c2193ab3a2
commit
2b6efb53c5
@ -1857,10 +1857,10 @@ class ShopController extends BaseAuthedController
|
|||||||
}
|
}
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
if ($item['item_type'] == 2) {
|
if ($item['item_type'] == 2) {
|
||||||
$this->internalAddItem($propertyChgService, $itemMeta, $item['num'], 1, $grade);
|
$this->internalAddItem($propertyChgService, $itemMeta, $item['num'], 0, $grade);
|
||||||
} else {
|
} else {
|
||||||
for ($j = 0; $j < $item['num']; $j++) {
|
for ($j = 0; $j < $item['num']; $j++) {
|
||||||
$this->internalAddItem($propertyChgService, $itemMeta, 1, 1, $grade);
|
$this->internalAddItem($propertyChgService, $itemMeta, 1, 0, $grade);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$record[$key] = array("item_id" => $item['item_id'], "item_num" => $item['num']);
|
$record[$key] = array("item_id" => $item['item_id'], "item_num" => $item['num']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user