This commit is contained in:
parent
94005549bf
commit
b52682b96d
@ -468,7 +468,9 @@ class NetTool extends NetToolBase {
|
||||
* @returns 一个表示200 OK的响应对象。
|
||||
*/
|
||||
ok(data?: any) {
|
||||
this.logger.info(`return a ok response: ${JSON.stringify(data)}`)
|
||||
this.logger.info(
|
||||
`return a ok response${data ? ": " + JSON.stringify(data) : ""}`
|
||||
)
|
||||
return Response.json({
|
||||
code: 0,
|
||||
message: "success",
|
||||
|
Loading…
x
Reference in New Issue
Block a user