Commit 91e0de2d by Aeolus

灰兔智能景区首页信息不要返回

parent e54c8703
......@@ -13,6 +13,9 @@ route_index = Blueprint('index', __name__)
def index():
json_data = request.get_json()
spot_id = json_data['spot_id'] if 'spot_id' in json_data else 0
if int(spot_id) == 88:
return jsonify(OPERATE_TYPE_ERROR)
data_type = json_data['type'] if 'type' in json_data else 1 # 1今日,2本周,3本月,4历史
if int(data_type) not in [1, 2, 3, 4]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment