diff --git a/README.MD b/README.MD index 2ee7b92..bc33d19 100644 --- a/README.MD +++ b/README.MD @@ -222,7 +222,7 @@ http://154.8.214.202:5015/interface/location ##### 请求示范 -http://154.8.214.202:6015/interface/location?gameid=1001&area=2&type=1&mode=2&x=2&y=2&x_offset=3&y_offset=3 +http://154.8.214.202:6015/interface/location?gameid=1001&area=3&type=1&mode=2&x=2&y=2&x_offset=4&y_offset=5&channelid=6001&id_property={"a":1,"b":2} ##### 请求参数说明 diff --git a/handler/location.py b/handler/location.py index 0a79040..f2974d1 100644 --- a/handler/location.py +++ b/handler/location.py @@ -93,6 +93,7 @@ class Location(Resource): location['id'] = self.create_id() if location['area'] and location['type'] and location['mode'] and location['gameid'] and location[ 'channelid']: + print(f"{location}") self.mydb.insert("location", location) return jsonify({'code': 200}) else: