def rewards(self): if self.rewardIds_str.strip(): from rewards.api import get_commonreward return [ get_commonreward(pk) for pk in self.rewardIds_str.strip().split(",") if pk ] return []
def costs(self): if self.costRewardId.strip(): from rewards.api import get_commonreward return [ get_commonreward(pk) for pk in self.costRewardId.strip().split(",") if pk ] return []
def diamondRewards(self): """ 钻石开箱奖励 """ return [ get_commonreward(rewardIdStr) for rewardIdStr in self.diamondRewardIds_str.strip().split(",") if rewardIdStr ]
def rewards(self): """ 奖励 """ return [ get_commonreward(rewardIdStr) for rewardIdStr in self.rewardIds_str.strip().split(",") if rewardIdStr ]
def tenReward(self): return get_commonreward(self.tenRewardId)
def reward(self): return get_commonreward(self.rewardId)
def reward(self): from rewards.api import get_commonreward return get_commonreward(self.rewardId)
def rewards_level_10(self): return [ get_commonreward(reward) for reward in self.rewardIds10_str.strip().split(",") if reward ]
def dailyRewards(self): return [ get_commonreward(rewardIdStr) for rewardIdStr in self.dailyRewards_str.strip().split(",") if rewardIdStr ]