This commit is contained in:
root 2019-07-19 16:43:08 +08:00
parent c099f9f791
commit cfd247223c

View File

@ -103,7 +103,7 @@ class Ad(Resource):
ad['companyid'] = self.args['companyid']
# 检查必需有的字段
if not (
ad['name'] and ad['gameid'] and ad['locationid'] and and ad['ad_image'] andad['jump_status'] and ad['companyid']):
ad['name'] and ad['gameid'] and ad['locationid'] and ad['ad_image'] and ad['jump_status'] and ad['companyid']):
return jsonify({'code': 500, 'message': '一些必填项未提供'})
# 检查该广告是否已存在