showcase/wwwroot/api/showcase_comment_update.dspy

11 lines
375 B
Plaintext

try:
data = {"id": params_kw.get('id', '')}
for f in ['content', 'status']:
v = params_kw.get(f)
if v is not None:
data[f] = v
result = await update_showcase_comment(data)
return result
except Exception as e:
return {"widgettype":"Error","options":{"title":"操作失败","message":str(e),"cwidth":16,"cheight":9,"timeout":3}}