添加位置的属性字段
This commit is contained in:
parent
9f9119957b
commit
148c86a463
@ -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}
|
||||
|
||||
##### 请求参数说明
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user