def get_redirect_url(self, url, encrypt_code, card_id):
from wechatpy.utils import WeChatSigner<EOL>code = self.decrypt_code(encrypt_code)<EOL>signer = WeChatSigner()<EOL>signer.add_data(self.secret)<EOL>signer.add_data(code)<EOL>signer.add_data(card_id)<EOL>signature = signer.signature<EOL>r = '<STR_LIT>'<EOL>return r.format(<EOL>url=url,<EOL>code=encrypt_code,<EOL>card_id=card_id,<EOL>signature=signature<EOL>)<EOL>
获取卡券跳转外链