Example #1
0
 def _successHandler(self, code, ctx=None):
     price = self.__getSlotPrice()
     if price:
         money = formatPrice(price)
     else:
         money = formatGoldPrice(price.gold)
     return makeI18nSuccess(sysMsgKey='vehicle_slot_buy/success', money=money, type=SM_TYPE.FinancialTransactionWithGold)
Example #2
0
 def _successHandler(self, code, ctx = None):
     price = self.__getSlotPrice()
     if price == ZERO_MONEY:
         money = formatGoldPrice(price.gold)
     else:
         money = formatPrice(price)
     return makeI18nSuccess('vehicle_slot_buy/success', money=money, type=SM_TYPE.FinancialTransactionWithGold)
Example #3
0
 def _successHandler(self, code, ctx=None):
     localKey = 'premium/continueSuccess' if self.wasPremium else 'premium/buyingSuccess'
     return makeI18nSuccess(localKey,
                            period=self.period,
                            money=formatGoldPrice(self.premiumPrice),
                            type=SM_TYPE.PurchaseForGold)
Example #4
0
 def _successHandler(self, code, ctx = None):
     localKey = 'premium/continueSuccess' if self.wasPremium else 'premium/buyingSuccess'
     return makeI18nSuccess(localKey, period=self.period, money=formatGoldPrice(self.premiumPrice), type=SM_TYPE.PurchaseForGold)