添加接口密钥
This commit is contained in:
parent
1c57799bba
commit
f28ce5b64c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue