From 991090bf046b246422685d7893255d9788e1838b Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 12 Sep 2019 14:14:16 +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 | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index de80260..2ee7b92 100644 --- a/README.MD +++ b/README.MD @@ -237,6 +237,7 @@ http://154.8.214.202:6015/interface/location?gameid=1001&area=2&type=1&mode=2&x= | mode | int | 是 | 广告单播或轮播模式(1=单播,2=轮播) | | gameid | int | 是 | 游戏ID | | channelid | int | 是 | 渠道ID | +|ld_propert|string|是|位置的属性| ##### 返回参数说明 @@ -278,6 +279,7 @@ http://154.8.214.202:5015/interface/location?area=1&type=1&gameid=1003 | gameid | int | 是 | 游戏ID | | channelid | int | 是 | 渠道ID | |in_used|int|否|是否使用,默认为1| +|ld_propert|string|是|位置的属性| ##### 返回参数说明 diff --git a/handler/location.py b/handler/location.py index f54c872..1675c2d 100644 --- a/handler/location.py +++ b/handler/location.py @@ -46,7 +46,8 @@ class Location(Resource): x_offset, y_offset, type, - mode + mode , + ld_propert from location where @@ -67,7 +68,7 @@ class Location(Resource): localtion = {} localtion['gameid'], localtion['channelid'], localtion['id'], localtion['area'], localtion['x'], \ localtion['y'], localtion['x_offset'], localtion['y_offset'], localtion['type'], localtion[ - 'mode'] = line + 'mode'],localtion['ld_propert'] = line all_data.append(localtion) del localtion return jsonify({'code': 200, 'message': all_data}) @@ -86,6 +87,7 @@ class Location(Resource): location['y_offset'] = self.args['y_offset'] location['type'] = self.args['type'] location['mode'] = self.args['mode'] + location['ld_propert'] = self.args['ld_propert'] location['gameid'] = self.args['gameid'] location['channelid'] = self.args['channelid'] location['id'] = self.create_id() @@ -124,6 +126,7 @@ class Location(Resource): location['y_offset'] = self.args['y_offset'] location['type'] = self.args['type'] location['mode'] = self.args['mode'] + location['ld_propert'] = self.args['ld_propert'] location['gameid'] = self.args['gameid'] location['channelid'] = self.args['channelid'] location['in_used'] = self.args['in_used'] or 1