update pay ui
This commit is contained in:
@@ -706,7 +706,6 @@ app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=7) # Session 有效
|
|||||||
app.config['SESSION_COOKIE_SECURE'] = False # 生产环境 HTTPS 时设为 True
|
app.config['SESSION_COOKIE_SECURE'] = False # 生产环境 HTTPS 时设为 True
|
||||||
app.config['SESSION_COOKIE_HTTPONLY'] = True
|
app.config['SESSION_COOKIE_HTTPONLY'] = True
|
||||||
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
|
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
|
||||||
app.config['SESSION_COOKIE_NAME'] = 'vf_mini_session' # 与 app.py 区分,避免同域名下 cookie 冲突
|
|
||||||
|
|
||||||
# Cache directory setup
|
# Cache directory setup
|
||||||
CACHE_DIR = Path('cache')
|
CACHE_DIR = Path('cache')
|
||||||
@@ -4156,8 +4155,8 @@ def api_login_wechat():
|
|||||||
# ============================================
|
# ============================================
|
||||||
# 微信获取手机号接口
|
# 微信获取手机号接口
|
||||||
# ============================================
|
# ============================================
|
||||||
# 微信 access_token 缓存 Key(与 app.py 共享,避免重复刷新触发微信频率限制)
|
# 微信 access_token 缓存 Key
|
||||||
_WECHAT_ACCESS_TOKEN_KEY = 'wechat:access_token:miniprogram'
|
_WECHAT_ACCESS_TOKEN_KEY = 'vf_wechat_access_token'
|
||||||
|
|
||||||
|
|
||||||
def get_wechat_access_token(force_refresh=False):
|
def get_wechat_access_token(force_refresh=False):
|
||||||
|
|||||||
Reference in New Issue
Block a user