def modify_stock(self, card_id, n):
if n == <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>card_data = {<EOL>'<STR_LIT>': card_id,<EOL>}<EOL>if n > <NUM_LIT:0>:<EOL><INDENT>card_data['<STR_LIT>'] = n<EOL><DEDENT>elif n < <NUM_LIT:0>:<EOL><INDENT>card_data['<STR_LIT>'] = -n<EOL><DEDENT>return self._post(<EOL>'<STR_LIT>',<EOL>data=card_data<EOL>)<EOL>
修改库存