1
This commit is contained in:
@@ -26,7 +26,7 @@ from app.utils.id_gen import generate_id, generate_order_no
|
|||||||
import time as _time
|
import time as _time
|
||||||
|
|
||||||
logger = logging.getLogger("payment")
|
logger = logging.getLogger("payment")
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
_log_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "log", "payment")
|
_log_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "log", "payment")
|
||||||
os.makedirs(_log_dir, exist_ok=True)
|
os.makedirs(_log_dir, exist_ok=True)
|
||||||
@@ -412,7 +412,6 @@ def _get_wechat_client(
|
|||||||
wechatpay_args["public_key_id"] = public_key_id
|
wechatpay_args["public_key_id"] = public_key_id
|
||||||
else:
|
else:
|
||||||
logger.info("No platform public key configured, will try to download")
|
logger.info("No platform public key configured, will try to download")
|
||||||
logger.info(f"Initializing WeChat Pay client with args: {wechatpay_args}")
|
|
||||||
_wechat_client = WeChatPay(**wechatpay_args)
|
_wechat_client = WeChatPay(**wechatpay_args)
|
||||||
_wechat_mch_id = mch_id
|
_wechat_mch_id = mch_id
|
||||||
return _wechat_client
|
return _wechat_client
|
||||||
|
|||||||
Reference in New Issue
Block a user