|
@@ -11,6 +11,7 @@ from urllib.parse import quote
|
|
|
import base64
|
|
|
from utils import *
|
|
|
from exceptions import YzyException
|
|
|
+from extensions import logger
|
|
|
|
|
|
# 应用名称:茂名市智慧应急平台
|
|
|
# https://open.weixin.qq.com/connect/Oauth2/authorize?appid=wld341060039&redirect_uri=https://www.baidu.com/#/&response_type=code&scope=snsapi_base&agentid=1004302&state=xxxxxx#wechat_redirect
|
|
@@ -188,7 +189,8 @@ def calcRequestSign(timestamp, token, nonce, uid, uinfo, ext):
|
|
|
|
|
|
def format_redirect_url(redirect_url: str) -> str:
|
|
|
yzy_callback_url = quote(settings.YJXP_CALLBACK_WEB_PATH)
|
|
|
-
|
|
|
+ logger.info("yzy_callback_url: {}", yzy_callback_url)
|
|
|
+
|
|
|
state_json = {
|
|
|
"redirect_url": redirect_url,
|
|
|
"rnd": new_guid()
|