feat(chat、pay): 增加pay沙盒、移除杂项
This commit is contained in:
@@ -144,6 +144,8 @@ class WechatPayApi(BaseClient):
|
||||
self.appi_key = app_key
|
||||
self.notify_url = notify_url
|
||||
self.base_url = 'https://api.mch.weixin.qq.com'
|
||||
if debug:
|
||||
self.base_url = f'{self.base_url}/sandboxnew'
|
||||
super().__init__()
|
||||
|
||||
@staticmethod
|
||||
@@ -209,14 +211,6 @@ class WechatPayApi(BaseClient):
|
||||
|
||||
|
||||
wechat_pay_api = WechatPayApi(
|
||||
appid=settings.APPID, mch_id=settings.PAY_MCH_ID, app_key=settings.PAY_API_KEY, notify_url=settings.PAY_NOTIFY_URL
|
||||
appid=settings.APPID, mch_id=settings.PAY_MCH_ID, app_key=settings.PAY_API_KEY,
|
||||
notify_url=settings.PAY_NOTIFY_URL, debug=settings.DEBUG
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
import asyncio
|
||||
|
||||
print(asyncio.run(decrypt_sensitive_data(
|
||||
session_key='uuLloEnWUpnOWkpB4Oyopw==',
|
||||
encrypted_data='Bzdx4BOZEJ10xf4fN2643OJaxHF/Wcj/Qv1q6M6L4MB0BBvKJRG3rlrGUYQd2nimCvDbDVPu+S3zUQidaOgyvBhDG4W0Oy8hgfeLALhqrzUo1AhTQvvxwQrntMHMRvqtdk1AzsiviaOEVGALYmuXneLD/XnGH8VzXaD2eiauzDQNCMtXVUUgB3QzIeqczr9xXSg2t6JB91m0kLs8a7FSsJAXhHIBk+58jKZjgxMUpzuJeJ/fu1Gez7q9o0iXYSVBO//KGpEVgWO0EPe4pINnwduZ3bbXF21UdRTzQ+GG2eYslXA2lespMlQWomwk5RbpVh+GWx/D29Tkprq17gkzeiiCHk9hIEHuY0+ausTbT+gOk/RG11qzYJL0nRT3uJr4GtAMKcqDV4Kmo9SThglwIg==',
|
||||
iv='Nr7pQgCBMextSzroXPNsIw=='
|
||||
)))
|
||||
|
||||
Reference in New Issue
Block a user