Commit f0597651 by lei

1

parent 4919ed8b
......@@ -309,10 +309,7 @@ class ToWork:
change_prompt = task['prompt']
# 图片链接
prompt_img = task['prompt_img']
logger.info(task)
logger.info(task['type'] == 1)
logger.info(prompt_img)
if task['type'] == 1 and prompt_img and len(json.loads(prompt_img)):
if (task['type'] == 1 or task['type'] == '1') and prompt_img and len(json.loads(prompt_img)):
logger.info('带图片任务')
prompt_img = json.loads(prompt_img)
st = ''
......
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