Compare commits

...

2 Commits

Author SHA1 Message Date
19cfb2c9c3 chore(release): publish
- @egg/net-tool@1.9.1
2024-09-30 03:59:12 +00:00
448044b1a3 chore(net-tool): 修改自定义的入参顺序
All checks were successful
/ release (push) Successful in 23s
2024-09-30 03:58:50 +00:00
4 changed files with 8 additions and 5 deletions

2
package-lock.json generated
View File

@ -12272,7 +12272,7 @@
},
"packages/net-tool": {
"name": "@egg/net-tool",
"version": "1.9.0",
"version": "1.9.1",
"license": "ISC",
"dependencies": {
"@egg/logger": "^1.4.3",

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.9.1](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.9.0...@egg/net-tool@1.9.1) (2024-09-30)
**Note:** Version bump only for package @egg/net-tool
# [1.9.0](http://yingbo.im:3000/zhaoyingbo/egg_tools/compare/@egg/net-tool@1.8.0...@egg/net-tool@1.9.0) (2024-09-30)
### Features

View File

@ -1,6 +1,6 @@
{
"name": "@egg/net-tool",
"version": "1.9.0",
"version": "1.9.1",
"description": "Net Tools for Egg projects",
"type": "module",
"main": "src/index.ts",

View File

@ -492,12 +492,11 @@ class NetTool extends NetToolBase {
/**
*
*
* @param status -
* @param data -
* @param status -
* @returns
*/
custom(status = 200, data = null as any) {
custom(data = null as any, status = 200) {
this.logger.info(
`return a ${status} response${data ? ": " + JSON.stringify(data) : ""}`
)