广告位置修改参数判断,拆分
This commit is contained in:
parent
74d373557d
commit
6681297146
@ -138,7 +138,10 @@ class Location(Resource):
|
||||
if data:
|
||||
condition = f"id='{self.args['id']}'"
|
||||
self.mydb.update("location", location, condition)
|
||||
self.reflush_location(location['id'])
|
||||
locationids = location['id'].replace('[', "").replace(']', "").replace('"', "").split(',')
|
||||
for id in locationids:
|
||||
log.info("reflush locationid={id}")
|
||||
self.reflush_location(id)
|
||||
return jsonify({'code': 200})
|
||||
else:
|
||||
return jsonify({'code': 404, 'message': f"{self.args['id']} not found in mysql!"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user