8 lines
339 B
Plaintext
8 lines
339 B
Plaintext
"""按 ID 查询单个世界。"""
|
|
try:
|
|
result = await get_world(dict(params_kw))
|
|
return json.dumps(result, ensure_ascii=False)
|
|
except Exception as e:
|
|
exception('get_world.dspy: %s' % e)
|
|
return json.dumps({'code': 'INTERNAL_ERROR', 'message': '查询世界失败', 'field': '', 'detail': format_exc()}, ensure_ascii=False)
|