From 148c86a46356da5bfd3ef439667bc03c4a4cf321 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 12 Sep 2019 14:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.MD | 2 +- handler/location.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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: