调整位置服务接口
This commit is contained in:
parent
bb0ad4ee94
commit
769be2e417
@ -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}
|
||||
|
||||
##### 请求参数说明
|
||||
|
||||
|
@ -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})
|
||||
|
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user