post
@basic_bt.route('/basicData/dShop/excel2', methods=["POST"])
def dShopExcel2():
# 获得form-data数据
# req = request.form
# 解析 JSON 数据,我们使用json
json_data = request.json
data = {
"code": 2000,
"message": "操作成功",
"data": json_data
}
return json.dumps(data, ensure_ascii=False)
get
@app.route("/itcast2", methods=["GET", "POST"])
def view_func_2():
req = request.args.get("dades")
return "333"+req