18 lines
387 B
Python
18 lines
387 B
Python
from flask import Blueprint, request
|
|
|
|
from tianyancha_api import save_full_data
|
|
|
|
tyc = Blueprint('tyc', __name__)
|
|
|
|
|
|
# 保存天眼查全量数据
|
|
@tyc.route('/drag_data', methods=['POST'])
|
|
def upload_tyc_data():
|
|
name = request.json['企业名称']
|
|
res = save_full_data(name)
|
|
if res == '保存成功':
|
|
return {"info": res}, 200
|
|
else:
|
|
return {"info": res}
|
|
|