diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 6c5ea085..b800d41d 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -466,7 +466,11 @@ class BaseAuthedController extends BaseController { switch ($itemMeta['type']) { case mt\Item::HERO_TYPE: { - $res = Hero::addFreeHero($itemMeta); + if (isset($item['is_payed']) && $item['is_payed']) { + $res = Hero::addHero($itemMeta); + } else { + $res = Hero::addFreeHero($itemMeta); + } if ($res){ $lastIdx = SqlHelper::getLastInsertId( myself()->_getSelfMysql()); $awardService->addHero($item['item_id'],$lastIdx); diff --git a/webapp/controller/DailySelectionController.class.php b/webapp/controller/DailySelectionController.class.php index 92331b51..18a67f12 100644 --- a/webapp/controller/DailySelectionController.class.php +++ b/webapp/controller/DailySelectionController.class.php @@ -194,6 +194,7 @@ class DailySelectionController extends BaseAuthedController { array( 'item_id' => $goodsMeta['goods_id'], 'item_num' => $goodsMeta['goods_num'], + 'is_payed' => true ) ), $awardService,