添加位置的属性字段

This commit is contained in:
pengtao 2019-09-12 14:19:19 +08:00
parent 9f9119957b
commit 148c86a463
2 changed files with 2 additions and 1 deletions

View File

@ -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}
##### 请求参数说明

View File

@ -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: