def update_luckymoney_balance(self, code, balance, card_id=None):
        """
        更新红包余额
        """
        card_data = {
            'code': code,
            'balance': balance
        }
        if card_id:
            card_data['card_id'] = card_id
        return self._post(
            'card/luckymoney/updateuserbalance',
            data=card_data
        )
def update_luckymoney_balance ( self , code , balance , card_id = None ) : card_data = { 'code' : code , 'balance' : balance } if card_id : card_data [ 'card_id' ] = card_id return self . _post ( 'card/luckymoney/updateuserbalance' , data = card_data )
更新红包余额