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