解决bug
This commit is contained in:
@@ -141,18 +141,6 @@ def api_create_task():
|
||||
data['task_id'] = str(uuid.uuid4())
|
||||
data['creator_id'] = username
|
||||
|
||||
# 确保 content_miniprogram 是 JSON 字符串
|
||||
if 'content_miniprogram' in data and isinstance(data['content_miniprogram'], dict):
|
||||
data['content_miniprogram'] = json.dumps(data['content_miniprogram'])
|
||||
|
||||
# 确保 groups 是 JSON 字符串
|
||||
if 'groups' in data and isinstance(data['groups'], list):
|
||||
data['groups'] = json.dumps(data['groups'])
|
||||
|
||||
# 确保 preview_recipients 是 JSON 字符串
|
||||
if 'preview_recipients' in data and isinstance(data['preview_recipients'], list):
|
||||
data['preview_recipients'] = json.dumps(data['preview_recipients'])
|
||||
|
||||
# 转换时间格式
|
||||
if 'created_at' in data:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user