Commit 598326eb authored by Administrator's avatar Administrator

修改判断布尔值的逻辑

parent b1b24876
......@@ -18,7 +18,7 @@ def validate_request():
video = instance[0]['video']
lang = instance[0]['lang']
with_sub = True if instance[0]['with_sub'] == 'true' else False
with_sub = True if instance[0]['with_sub'] else False
if len(video) <= 0:
error('参数错误: video 参数不可为空')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment