fix(audit): 修复 decorators.py 中缺失 has_request_context 导入导致的致命 NameError
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# app/utils/decorators.py
|
# app/utils/decorators.py
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
from flask_jwt_extended import get_jwt, verify_jwt_in_request, get_jwt_identity
|
from flask_jwt_extended import get_jwt, verify_jwt_in_request, get_jwt_identity
|
||||||
from flask import jsonify, g, request
|
from flask import jsonify, g, request, current_app, has_request_context
|
||||||
import logging
|
import logging
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user