17 lines
675 B
Plaintext
17 lines
675 B
Plaintext
try:
|
|
user_id = await get_user()
|
|
data = {
|
|
"post_id": params_kw.get('post_id', ''),
|
|
"user_id": user_id,
|
|
"user_name": params_kw.get('user_name', ''),
|
|
"parent_id": params_kw.get('parent_id', ''),
|
|
"reply_to_user_id": params_kw.get('reply_to_user_id', ''),
|
|
"reply_to_user_name": params_kw.get('reply_to_user_name', ''),
|
|
"content": params_kw.get('content', ''),
|
|
"created_at": curDateString()
|
|
}
|
|
result = await create_showcase_comment(data)
|
|
return result
|
|
except Exception as e:
|
|
return {"widgettype":"Error","options":{"title":"操作失败","message":str(e),"cwidth":16,"cheight":9,"timeout":3}}
|