def update_luckymoney_balance(self, code, balance, card_id=None):
card_data = {<EOL>'<STR_LIT:code>': code,<EOL>'<STR_LIT>': balance<EOL>}<EOL>if card_id:<EOL><INDENT>card_data['<STR_LIT>'] = card_id<EOL><DEDENT>return self._post(<EOL>'<STR_LIT>',<EOL>data=card_data<EOL>)<EOL>
更新红包余额