添加位置的属性字段

This commit is contained in:
pengtao 2019-09-12 14:14:16 +08:00
parent df39e302a0
commit 991090bf04
2 changed files with 7 additions and 2 deletions

View File

@ -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|是|位置的属性|
##### 返回参数说明

View File

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