@liujitcn/kratos-taro-app-system 0.0.66 → 0.0.68

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 CHANGED
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.0.66",
10
+ "version": "0.0.68",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -38,8 +38,8 @@
38
38
  "@tarojs/components": "4.2.1",
39
39
  "@tarojs/taro": "4.2.1",
40
40
  "react": "18.3.1",
41
- "@liujitcn/kratos-taro-app-core": "^0.0.66",
42
- "@liujitcn/kratos-taro-app-ui": "^0.0.66"
41
+ "@liujitcn/kratos-taro-app-core": "^0.0.68",
42
+ "@liujitcn/kratos-taro-app-ui": "^0.0.68"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "pnpm run build:entries && pnpm pack --pack-destination ../../../dist/npm",
@@ -27,6 +27,9 @@ export class NotificationServiceImpl implements NotificationService {
27
27
  const data = Object.fromEntries(
28
28
  Object.entries(request).filter(([, value]) => value !== undefined),
29
29
  )
30
+ // 后端 buf.validate 要求 page_num>=1;游标模式下该值不参与查询,补默认值保证校验通过。
31
+ if (data.page_num === undefined) data.page_num = 1
32
+ if (data.page_size === undefined) data.page_size = 20
30
33
  return http<Partial<PageNotificationResponse>>({
31
34
  url: NOTIFICATION_URL,
32
35
  method: 'GET',
@@ -11,4 +11,4 @@
11
11
 
12
12
  语言键必须使用 `system.` 命名空间;语言包保持标准 JSON,不在文件内写注释。新增语言后执行仓库根目录的 `make i18n`。
13
13
 
14
- 新增语言的完整文件清单和迁移流程见[国际化语言扩展指南](../../../../../../../docs/国际化语言扩展指南.md)。
14
+ 新增语言的完整文件清单和迁移流程见[国际化设计与语言扩展](../../../../../../../docs/国际化最终方案.md)。
@@ -53,6 +53,8 @@ export interface SendAiMessageRequest {
53
53
  provider_id: number;
54
54
  /** 所选模型名称 */
55
55
  model_name: string;
56
+ /** 所选知识库ID列表 */
57
+ knowledge_base_ids: number[];
56
58
  }
57
59
 
58
60
  /** AI 助手失败消息重试请求 */
@@ -417,6 +417,7 @@ export default function AiPage() {
417
417
  content: payload.text,
418
418
  provider_id: selectedProviderId,
419
419
  model_name: selectedModelName,
420
+ knowledge_base_ids: [],
420
421
  attachments: payload.attachments,
421
422
  action: undefined,
422
423
  }
@@ -9,9 +9,8 @@ import {
9
9
  getWebAuthnAssertion,
10
10
  } from '@liujitcn/kratos-taro-app-core/utils/webauthn'
11
11
  import {
12
- PASSWORD_CRYPTO_SCENE,
13
12
  encryptPassword,
14
- } from '@liujitcn/kratos-taro-app-core/utils/passwordCrypto'
13
+ } from '@liujitcn/kratos-taro-app-core/utils/secretCrypto'
15
14
  import './PasswordVerifyDialog.scss'
16
15
 
17
16
  /** MFA 通用操作弹窗属性。 */
@@ -95,10 +94,7 @@ export default function PasswordVerifyDialog({
95
94
  setLoading(true)
96
95
  setErrorMessage('')
97
96
  try {
98
- const password = await encryptPassword(
99
- setupPasswordInput,
100
- PASSWORD_CRYPTO_SCENE.PASSWORD_CRYPTO_SCENE_MFA,
101
- )
97
+ const password = await encryptPassword(setupPasswordInput)
102
98
  const result = await defMfaService.BeginMfaSetup({ password, setup_ticket: '' })
103
99
  setSetupTicket(result.setup_ticket)
104
100
  setSetupMethod(result.method || 'totp')
@@ -135,10 +131,7 @@ export default function PasswordVerifyDialog({
135
131
  setLoading(true)
136
132
  setErrorMessage('')
137
133
  try {
138
- const password = await encryptPassword(
139
- disablePasswordInput,
140
- PASSWORD_CRYPTO_SCENE.PASSWORD_CRYPTO_SCENE_MFA,
141
- )
134
+ const password = await encryptPassword(disablePasswordInput)
142
135
  if (disableRecoveryCode.trim()) {
143
136
  await defMfaService.DisableMfa({
144
137
  password,