调整位置服务接口

This commit is contained in:
pengtao 2019-07-25 17:03:01 +08:00
parent bb0ad4ee94
commit 769be2e417
3 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ http://ad.kingsome.cn/webapp/index.php
##### 请求示范
http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1003","channelid":6001,"locationid":1001}
http://ad.kingsome.cn/webapp/index.php?c=Ops&a=getAdList&body={"gameid":"1004:6001","channelid":6001,"area":1}
##### 请求参数说明

View File

@ -66,7 +66,7 @@ class Company(Resource):
id = self.args['id']
try:
del_sql = f'delete from company where id={id};'
self.mydb.query(del_sql)
self.mydb.change(del_sql)
except Exception:
log.error(f"remove {id} failed!", exc_info=True)
return jsonify({'code': 500})

View File

@ -116,7 +116,7 @@ class Location(Resource):
return jsonify({'code': 500, 'message': 'id not found'})
try:
del_sql = f'delete from location where id={id};'
self.mydb.query(del_sql)
self.mydb.change(del_sql)
except Exception:
log.error(f"location remove {id} failed!", exc_info=True)
return jsonify({'code': 500})