fix: 使用return而非print返回数组数据
This commit is contained in:
parent
62a666e16e
commit
51f9776f40
@ -14,7 +14,7 @@ try:
|
||||
})
|
||||
|
||||
# Return array directly for code component
|
||||
print(json.dumps(result, ensure_ascii=False))
|
||||
return result
|
||||
except Exception as e:
|
||||
# On error or no data, return empty array
|
||||
print(json.dumps([], ensure_ascii=False))
|
||||
return []
|
||||
Loading…
x
Reference in New Issue
Block a user