添加接口密钥

This commit is contained in:
王思川 2021-12-08 16:17:58 +08:00
parent 1c57799bba
commit f28ce5b64c
1 changed files with 2 additions and 0 deletions

View File

@ -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)