befly 1.2.5 → 1.2.6
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/main.js +1 -1
- package/package.json +2 -2
package/main.js
CHANGED
|
@@ -446,7 +446,7 @@ class Befly {
|
|
|
446
446
|
|
|
447
447
|
// 登录验证 auth 有3种值 分别为 true、false、['admin', 'user']
|
|
448
448
|
if (api.auth === true && !ctx.user.id) {
|
|
449
|
-
return Response.json(RNo('未登录'), {
|
|
449
|
+
return Response.json(RNo('未登录', {}, { login: false }), {
|
|
450
450
|
headers: corsOptions.headers
|
|
451
451
|
});
|
|
452
452
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Buma - 为 Bun 专属打造的 API 接口框架核心引擎",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"README.md",
|
|
50
50
|
"vitest.config.js"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "61da14584fbbff2c933b481ef69681240bc4ac27"
|
|
53
53
|
}
|