befly 3.18.12 → 3.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/utils/response.js +0 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly",
|
|
3
|
-
"version": "3.18.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "3.18.13",
|
|
4
|
+
"gitHead": "43fa8bd27f466687944154abcc40f4c0ac26b495",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly - 为 Bun 专属打造的 JavaScript API 接口框架核心引擎",
|
|
7
7
|
"keywords": [
|
package/utils/response.js
CHANGED
|
@@ -46,14 +46,6 @@ export function ErrorResponse(ctx, msg, code = 1, data = null, detail = null, re
|
|
|
46
46
|
* @returns Response 对象
|
|
47
47
|
*/
|
|
48
48
|
export function FinalResponse(ctx) {
|
|
49
|
-
// 记录请求日志
|
|
50
|
-
if (ctx.apiPath && ctx.requestId) {
|
|
51
|
-
// requestId/apiPath/user/duration 等字段由调用方显式写入日志上下文,避免在 msg 中重复拼接
|
|
52
|
-
Logger.info("请求完成", {
|
|
53
|
-
event: "request_done"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
49
|
// 1. 如果已经有 response,直接返回
|
|
58
50
|
if (ctx.response) {
|
|
59
51
|
return ctx.response;
|