# """这里requestID标签验证 """
# import json
# import functools
# from flask import request
#
# from src.libs.error import APIException
# from src.libs.functions import generate_requestId
# from src.libs.log_utils import Logger
#
#
# def checkrequestid():
#     def wrapper(func):
#         @functools.wraps(func)
#         def inner(*args, **kwargs):
#             requestId = request.headers.get('request-id')
#             timestamp = request.headers.get('timestamp')
#             query_json = request.args.to_dict()
#             data_json = request.get_json(silent=True)
#             print(data_json)
#             requestId,signid,timestamp=generate_requestId(requestId,timestamp,query_json,data_json)
#             Logger().logger.info(f'接受到的requestId:{requestId},生成后的signid:{signid}')
#             if requestId != signid:
#                 raise APIException(code=500, message='request-id认证失败')
#             return func(*args, **kwargs)
#
#         return inner
#
#     return wrapper
