Beispiel #1
0
 def debit_coin(self, user, coin_num):
     point_utils = CoinUtils()
     point_utils.add_point(user=user,
                           point=-coin_num,
                           record_type='pkg',
                           detail='金币购买服务')
     return True
Beispiel #2
0
 def active_service(self):
     coin_utils = CoinUtils()
     coin_utils.add_point(
         user=self.user,
         point=float(self.item_num),
         record_type='pkg',
         detail='金币充值',
     )
     return True
Beispiel #3
0
 def debit_coin(self, user, coin_num):
     point_utils = CoinUtils()
     point_utils.add_point(
         user=user,
         point=-coin_num,
         record_type='pkg',
         detail='金币购买服务'
     )
     return True
Beispiel #4
0
 def active_service(self):
     coin_utils = CoinUtils()
     coin_utils.add_point(
         user=self.user,
         point=float(self.item_num),
         record_type='pkg',
         detail='金币充值',
     )
     return True