+
{{ $t('conversation.message.apiInfo') }}
diff --git a/src/constants/errorCode.ts b/src/constants/errorCode.ts
index 822cb6a5..9f070d4b 100644
--- a/src/constants/errorCode.ts
+++ b/src/constants/errorCode.ts
@@ -4,3 +4,4 @@ export const ERROR_CODE_BUSY = 'busy';
export const ERROR_CODE_API_ERROR = 'api_error';
export const ERROR_CODE_BAD_REQUEST = 'bad_request';
export const ERROR_CODE_NO_CONVERSATION = 'no_conversation';
+export const ERROR_CODE_USED_UP = 'used_up';
diff --git a/src/i18n/zh/api/entity.ts b/src/i18n/zh/api/entity.ts
new file mode 100644
index 00000000..24d77273
--- /dev/null
+++ b/src/i18n/zh/api/entity.ts
@@ -0,0 +1,15 @@
+export default {
+ requestQueries: 'URL参数',
+ requestBody: '请求体',
+ responseBody: '响应体',
+ requestHeaders: '请求头',
+ requestHeader: '请求头',
+ responseHeaders: '响应头',
+ response: '响应',
+ success: '成功',
+ failure: '失败',
+ responseExample: '样例',
+ authentication: '认证',
+ arrayOf: '列表',
+ apiKey: 'API Key'
+};
diff --git a/src/i18n/zh/api/index.ts b/src/i18n/zh/api/index.ts
new file mode 100644
index 00000000..3862e014
--- /dev/null
+++ b/src/i18n/zh/api/index.ts
@@ -0,0 +1,9 @@
+import entity from './entity';
+import unit from './unit';
+import message from './message';
+
+export default {
+ entity,
+ unit,
+ message
+};
diff --git a/src/i18n/zh/api/message.ts b/src/i18n/zh/api/message.ts
new file mode 100644
index 00000000..cd0f6efd
--- /dev/null
+++ b/src/i18n/zh/api/message.ts
@@ -0,0 +1,8 @@
+export default {
+ free: '免费',
+ appliedCount: '申请次数',
+ firstFree: '首次送',
+ custom: '指定次数',
+ present: '赠送',
+ around: '约'
+};
diff --git a/src/i18n/zh/api/unit.ts b/src/i18n/zh/api/unit.ts
new file mode 100644
index 00000000..672f711e
--- /dev/null
+++ b/src/i18n/zh/api/unit.ts
@@ -0,0 +1,3 @@
+export default {
+ Count: '次'
+};
diff --git a/src/i18n/zh/application/button.ts b/src/i18n/zh/application/button.ts
new file mode 100644
index 00000000..0774553f
--- /dev/null
+++ b/src/i18n/zh/application/button.ts
@@ -0,0 +1,7 @@
+export default {
+ goDocument: '查看文档',
+ buyMore: '购买更多',
+ createOrder: '创建订单',
+ custom: '自定义',
+ query: '查询'
+};
diff --git a/src/i18n/zh/application/field.ts b/src/i18n/zh/application/field.ts
new file mode 100644
index 00000000..a7bb5609
--- /dev/null
+++ b/src/i18n/zh/application/field.ts
@@ -0,0 +1,18 @@
+export default {
+ id: '申请ID',
+ remainingAmount: '剩余量',
+ usedAmount: '使用量',
+ apiKey: 'API Key',
+ service: '服务',
+ operation: '操作',
+ amount: '数量',
+ shouldPayPrice: '应付金额',
+ api: 'API',
+ proxy: '代理',
+ credential: '密钥',
+ name: '名称',
+ package: '套餐',
+ type: '类型',
+ freeAmount: '免费赠送',
+ extraPrice: '价格'
+};
diff --git a/src/i18n/zh/application/index.ts b/src/i18n/zh/application/index.ts
new file mode 100644
index 00000000..b093a5b9
--- /dev/null
+++ b/src/i18n/zh/application/index.ts
@@ -0,0 +1,11 @@
+import field from './field';
+import button from './button';
+import message from './message';
+import title from './title';
+
+export default {
+ field,
+ button,
+ message,
+ title
+};
diff --git a/src/i18n/zh/application/message.ts b/src/i18n/zh/application/message.ts
new file mode 100644
index 00000000..3579ec7a
--- /dev/null
+++ b/src/i18n/zh/application/message.ts
@@ -0,0 +1,21 @@
+export default {
+ alreadyApplied: '已经申请过该服务',
+ applySuccessfully: '申请成功',
+ notApplied: '你尚未申请过该服务,请先申请该服务之后使用',
+ yourApplication: '你的申请',
+ unverified: '您需要完成实名认证之后方可申请该服务',
+ goVerify: '去实名认证',
+ requiredParameter: '必填参数',
+ example: '样例',
+ readPolicy: '我已阅读并同意',
+ policy: '《数据技术服务使用协议》',
+ notAgreePolicy: '您尚未同意《数据技术服务使用协议》',
+ confirmApplying: '申请服务确认',
+ rotateCredential: '重置密钥',
+ rotateCredentialConfirm: '你确定要重置密钥吗?重置后不可恢复',
+ idDoesNotExist: '申请不存在',
+ rotateCredentialSuccessfully: '密钥重置成功',
+ rotateCredentialFailed: '密钥重置失败,请联系客服处理',
+ updateFailed: '修改失败',
+ updateSuccessfully: '修改成功'
+};
diff --git a/src/i18n/zh/application/title.ts b/src/i18n/zh/application/title.ts
new file mode 100644
index 00000000..1efa1f92
--- /dev/null
+++ b/src/i18n/zh/application/title.ts
@@ -0,0 +1,5 @@
+export default {
+ buyService: '购买服务',
+ applicationRemainingCount: '次数修改',
+ manageApplication: '申请管理'
+};
diff --git a/src/i18n/zh/conversation/message.ts b/src/i18n/zh/conversation/message.ts
index 8b78ef56..f72c80a5 100644
--- a/src/i18n/zh/conversation/message.ts
+++ b/src/i18n/zh/conversation/message.ts
@@ -18,5 +18,6 @@ export default {
errorApiError: '回答失败,请稍后重试',
errorBadRequest: '请求内容不规范,请重新提问',
errorNoConversation: '对话内容不存在或者已经过期,请发起新的会话',
- confirmDelete: '确定删除'
+ confirmDelete: '确定删除',
+ errorUsedUp: '您的套餐次数已经用完,请购买更多次数继续使用'
};
diff --git a/src/i18n/zh/index.ts b/src/i18n/zh/index.ts
index f0e2f2d6..918e4550 100644
--- a/src/i18n/zh/index.ts
+++ b/src/i18n/zh/index.ts
@@ -1,9 +1,13 @@
import common from './common';
import auth from './auth';
import conversation from './conversation';
+import application from './application';
+import api from './api';
export default {
common,
conversation,
- auth
+ auth,
+ application,
+ api
};
diff --git a/src/pages/conversation/Main.vue b/src/pages/conversation/Main.vue
index c4ce47ea..79406750 100644
--- a/src/pages/conversation/Main.vue
+++ b/src/pages/conversation/Main.vue
@@ -213,7 +213,6 @@ export default defineComponent({
onDraft(content: string) {
this.input = content;
},
-
onSend() {
if (this.answering) {
return;