From f28ce5b64cb969503190ab485ddb4a522d5d02d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Wed, 8 Dec 2021 16:17:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3=E5=AF=86?= =?UTF-8?q?=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes.py b/routes.py index 4f46658..45f9146 100644 --- a/routes.py +++ b/routes.py @@ -1,5 +1,6 @@ from flask import Blueprint, request +from common import verify_token from tianyancha_api import save_full_data tyc = Blueprint('tyc', __name__) @@ -7,6 +8,7 @@ tyc = Blueprint('tyc', __name__) # 保存天眼查全量数据 @tyc.route('/drag_data', methods=['POST']) +@verify_token def upload_tyc_data(): name = request.json['企业名称'] res = save_full_data(name)