def get_jsapi_card_params(self, card_ticket, card_type, **kwargs):
card_signature_dict = {<EOL>'<STR_LIT>': card_type,<EOL>'<STR_LIT>': kwargs.get('<STR_LIT>', random_string()),<EOL>'<STR_LIT>': card_ticket,<EOL>'<STR_LIT>': self.appid,<EOL>'<STR_LIT>': kwargs.get('<STR_LIT>', str(int(time.time()))),<EOL>}<EOL>list_before_sign = sorted([str(x) for x in card_signature_dict.values()])<EOL>str_to_sign = "<STR_LIT>".join(list_before_sign).encode()<EOL>card_signature_dict['<STR_LIT>'] = hashlib.sha1(str_to_sign).hexdigest()<EOL>return card_signature_dict<EOL>
参数意义见微信文档地址：http://mp.weixin.qq.com/wiki/7/aaa137b55fb2e0456bf8dd9148dd613f.html
:param card_ticket: 用于卡券的微信 api_ticket
:param card_type: 
:param kwargs: 非必须参数：noncestr, timestamp, code, openid, fixed_begintimestamp, outer_str
:return: 包含调用jssdk所有所需参数的 dict