1
This commit is contained in:
parent
86a61c5c7c
commit
a2b448ed1d
@ -16,6 +16,18 @@ use models\Avatar;
|
||||
use phpcommon\SqlHelper;
|
||||
class AddItemsService extends BaseService
|
||||
{
|
||||
|
||||
private function _isAddAwardItem($itemId){
|
||||
if (!in_array($itemId,array(
|
||||
Item::HERO_TYPE,
|
||||
Item::CHIP_TYPE,
|
||||
Item::APPOINT_PROP_TYPE
|
||||
))){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function addItems($items, $awardService, $propertyService){
|
||||
myself()->_checkS();
|
||||
$heads = array();
|
||||
@ -23,7 +35,7 @@ class AddItemsService extends BaseService
|
||||
foreach ($items as $item) {
|
||||
//道具产出埋点
|
||||
LogService::productItem($item);
|
||||
if ($awardService){
|
||||
if ($awardService && $this->_isAddAwardItem($item['item_id'])){
|
||||
$awardService->addItem($item['item_id'], $item['item_num']);
|
||||
}
|
||||
if (myself()->_isVirtualItem($item['item_id'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user