Esempio n. 1
0
 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 []
Esempio n. 2
0
 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 []
Esempio n. 3
0
 def diamondRewards(self):
     """
     钻石开箱奖励
     """
     return [
         get_commonreward(rewardIdStr)
         for rewardIdStr in self.diamondRewardIds_str.strip().split(",")
         if rewardIdStr
     ]
Esempio n. 4
0
 def rewards(self):
     """
     奖励
     """
     return [
         get_commonreward(rewardIdStr)
         for rewardIdStr in self.rewardIds_str.strip().split(",")
         if rewardIdStr
     ]
Esempio n. 5
0
 def tenReward(self):
     return get_commonreward(self.tenRewardId)
Esempio n. 6
0
 def reward(self):
     return get_commonreward(self.rewardId)
Esempio n. 7
0
 def reward(self):
     from rewards.api import get_commonreward
     return get_commonreward(self.rewardId)
Esempio n. 8
0
 def rewards_level_10(self):
     return [
         get_commonreward(reward)
         for reward in self.rewardIds10_str.strip().split(",") if reward
     ]
Esempio n. 9
0
 def dailyRewards(self):
     return [
         get_commonreward(rewardIdStr)
         for rewardIdStr in self.dailyRewards_str.strip().split(",")
         if rewardIdStr
     ]