wkt's blog
非学无以致疑,非问无以广识

常用

admin~2018年11月6日 /笔记
  1. 已有密钥生成公钥
openssl rsa -in app_private_key.pem  -put app_public.pem 
  1. 支付宝回调参数
ipdb> request.form                                                                                                                                                                            
ImmutableMultiDict([('gmt_create', '2018-11-06 17:24:31'), ('charset', 'utf-8'), ('gmt_payment', '2018-11-06 17:24:46'), ('notify_time', '2018-11-06 17:24:47'), ('subject', 'elllfjdl'), ('sign', 'rB/dXq+3IkqGwMSSOG1DpiGzGGfe2L7nTBNP+XGVhDiHzL1rRGCXQfIrApd+05d9hP/sfAq+sSB+PvvMbKxGDBPNWFEBKiFj5pzo+bnDiUMF6MDGaV2M7OCq8xkr/sl4yPYv/GhqT7I3TUYRgqdrW8mvPC7EBupW0TWgBX4ghb7F8FX47EJCkUYCprbHZX/hW0GxJtGxYxq6s+3qeDktICaOk9c4jsKoZDHMpCZfoco6/Rec8g7nnRRORiWxYX/YQF5tsLowzmz1I7owRL6m2pB1ccfH3NVEQdfScToEgl5D9D5Xl7VEa2eWoDQm5NocUuuFfkUXsY7fOryLtoh/UA=='), ('buyer_id', '2088102176406494'), ('invoice_amount', '0.01'), ('version', '1.0'), ('notify_id', '1997cfd51e7c1de6050d2d11205ca77js9'), ('fund_bill_list', '[{"amount":"0.01","fundChannel":"ALIPAYACCOUNT"}]'), ('notify_type', 'trade_status_sync'), ('out_trade_no', 'kfcDNMZ8nZ8jfqpmg5baa4qlFufoRps1'), ('total_amount', '0.01'), ('trade_status', 'TRADE_SUCCESS'), ('trade_no', '2018110622001406490500653962'), ('auth_app_id', '2016091900546396'), ('receipt_amount', '0.01'), ('point_amount', '0.00'), ('app_id', '2016091900546396'), ('buyer_pay_amount', '0.01'), ('sign_type', 'RSA2'), ('seller_id', '2088102176308352')])
ipdb> request.form.to_dict()                                                                                                                                                                  
{'gmt_create': '2018-11-06 17:24:31', 'charset': 'utf-8', 'gmt_payment': '2018-11-06 17:24:46', 'notify_time': '2018-11-06 17:24:47', 'subject': 'elllfjdl', 'sign': 'rB/dXq+3IkqGwMSSOG1DpiGzGGfe2L7nTBNP+XGVhDiHzL1rRGCXQfIrApd+05d9hP/sfAq+sSB+PvvMbKxGDBPNWFEBKiFj5pzo+bnDiUMF6MDGaV2M7OCq8xkr/sl4yPYv/GhqT7I3TUYRgqdrW8mvPC7EBupW0TWgBX4ghb7F8FX47EJCkUYCprbHZX/hW0GxJtGxYxq6s+3qeDktICaOk9c4jsKoZDHMpCZfoco6/Rec8g7nnRRORiWxYX/YQF5tsLowzmz1I7owRL6m2pB1ccfH3NVEQdfScToEgl5D9D5Xl7VEa2eWoDQm5NocUuuFfkUXsY7fOryLtoh/UA==', 'buyer_id': '2088102176406494', 'invoice_amount': '0.01', 'version': '1.0', 'notify_id': '1997cfd51e7c1de6050d2d11205ca77js9', 'fund_bill_list': '[{"amount":"0.01","fundChannel":"ALIPAYACCOUNT"}]', 'notify_type': 'trade_status_sync', 'out_trade_no': 'kfcDNMZ8nZ8jfqpmg5baa4qlFufoRps1', 'total_amount': '0.01', 'trade_status': 'TRADE_SUCCESS', 'trade_no': '2018110622001406490500653962', 'auth_app_id': '2016091900546396', 'receipt_amount': '0.01', 'point_amount': '0.00', 'app_id': '2016091900546396', 'buyer_pay_amount': '0.01', 'sign_type': 'RSA2', 'seller_id': '2088102176308352'}

发表评论

电子邮件地址不会被公开。