mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-12 06:04:26 +08:00
update database sql file
This commit is contained in:
11
CHANGELOG.md
11
CHANGELOG.md
@@ -2,13 +2,16 @@
|
||||
|
||||
## v4.2.6
|
||||
|
||||
- 功能重构:重构移动端 UI,使用 tailwindcss 组件库,把 PC 端所有页面都在迁移到了移动端
|
||||
- 功能优化:重构 API 授权代码,采用中间件鉴权方式,实现更加精准的 API 鉴权
|
||||
- 功能优化:优化系统配置管理功能,把 OSS,支付,短信,邮件等配置全部迁移到管理后台,无需通过修改配置文档的方式修改
|
||||
- 功能重构:优化系统配置管理功能,把 OSS,支付,短信,邮件等配置全部迁移到管理后台,无需通过修改配置文档的方式修改 🎉🎉🎉
|
||||
- 功能优化:重构 API 授权代码,采用中间件鉴权方式,实现更加精准的 API 鉴权 🎉🎉🎉
|
||||
- 功能优化:优化 PC 端的 Suno 音乐,视频生成,以及即梦 AI 页面 UI
|
||||
- 功能优化:重构登录和注册页面,兼容移动端和 PC 端,并且所有的登录组件共用了同一套组件代码,大大降低维护成本
|
||||
- 功能优化:重构登录和注册页面,兼容移动端和 PC 端,并且所有的登录组件共用了同一套组件代码,大大降低维护成本 🎉🎉🎉
|
||||
- 功能优化:管理后台增加模型批量删除功能
|
||||
- 功能优化:优化 Table 组件 UI,并支持 dark 主题
|
||||
- 功能优化:移动端对话页面支持上传文件和图片
|
||||
- 功能新增:新增微信扫码登录支持
|
||||
- 功能新增:新增安全监控,内容审核功能,支持敏感内容过滤拦截
|
||||
- 功能新增:DALL-E 绘图支持参 Google Banana 图片编辑功能
|
||||
|
||||
## v4.2.5
|
||||
|
||||
|
||||
1089
database/geekai_plus-v4.2.6.sql
Normal file
1089
database/geekai_plus-v4.2.6.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,3 +0,0 @@
|
||||
INSERT INTO `chatgpt_configs` (`id`, `marker`, `config_json`) VALUES
|
||||
(4, 'privacy', '{\"sd_neg_prompt\":\"\",\"mj_mode\":\"\",\"index_navs\":null,\"copyright\":\"\",\"default_nickname\":\"\",\"icp\":\"\",\"mark_map_text\":\"\",\"enabled_verify\":false,\"email_white_list\":null,\"translate_model_id\":0,\"max_file_size\":0,\"content\":\"# 隐私政策\\n\\n我们非常重视用户的隐私和个人信息保护。您在使用我们的产品与服务时,我们可能会收集和使用您的相关信息。我们希望通过本《隐私政策》向您说明我们在收集和使用您相关信息时对应的处理规则。\",\"updated\":true}'),
|
||||
(5, 'agreement', '{\"sd_neg_prompt\":\"\",\"mj_mode\":\"\",\"index_navs\":null,\"copyright\":\"\",\"default_nickname\":\"\",\"icp\":\"\",\"mark_map_text\":\"\",\"enabled_verify\":false,\"email_white_list\":null,\"translate_model_id\":0,\"max_file_size\":0,\"content\":\"# 用户协议\\n\\n用户在使用本服务前应当阅读并同意本协议。本协议内容包括协议正文及所有本平台已经发布的或将来可能发布的各类规则。所有规则为本协议不可分割的组成部分,与协议正文具有同等法律效力。\",\"updated\":true}');
|
||||
@@ -1,5 +0,0 @@
|
||||
ALTER TABLE `chatgpt_chat_models` ADD `category` VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '模型类别' AFTER `id`;
|
||||
ALTER TABLE `chatgpt_chat_models` ADD `description` VARCHAR(1024) NOT NULL DEFAULT '' COMMENT '模型类型描述' AFTER `id`;
|
||||
ALTER TABLE `chatgpt_orders` DROP `deleted_at`;
|
||||
ALTER TABLE `chatgpt_chat_history` DROP `deleted_at`;
|
||||
ALTER TABLE `chatgpt_chat_items` DROP `deleted_at`;
|
||||
@@ -724,7 +724,7 @@ const sendSSERequest = async (message) => {
|
||||
if (data.type === 'error') {
|
||||
const reply = chatData.value[chatData.value.length - 1]
|
||||
if (reply) {
|
||||
reply['content'].text = `<div class="text-red-500 p-3 rounded-md">${data.body}</div>`
|
||||
reply['content'].text = `<div class="text-red-500 rounded-md">${data.body}</div>`
|
||||
}
|
||||
isGenerating.value = false
|
||||
return
|
||||
@@ -818,7 +818,7 @@ const sendSSERequest = async (message) => {
|
||||
// ElMessage.error('连接已断开,发生错误:' + err.message)
|
||||
const reply = chatData.value[chatData.value.length - 1]
|
||||
if (reply) {
|
||||
reply['content'].text = `<div class="text-red-500 p-3 rounded-md">${err.message}</div>`
|
||||
reply['content'].text = `<div class="text-red-500 rounded-md">${err.message}</div>`
|
||||
}
|
||||
},
|
||||
onclose() {
|
||||
|
||||
@@ -52,10 +52,12 @@ import LoginDialog from '@/components/LoginDialog.vue'
|
||||
import { isMobile } from '@/utils/libs'
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { setUserToken } from '@/store/session'
|
||||
|
||||
const router = useRouter()
|
||||
const loginDialogRef = ref(null)
|
||||
const inviteCode = ref(router.currentRoute.value.query.invite_code || '')
|
||||
const token = ref(router.currentRoute.value.query.token || '')
|
||||
const isRegister = ref(router.currentRoute.value.path === '/register')
|
||||
const active = ref(isRegister.value ? 'register' : 'login')
|
||||
const title = computed(() => (isRegister.value ? '用户注册' : '用户登录'))
|
||||
@@ -81,6 +83,11 @@ onMounted(() => {
|
||||
if (loginDialogRef.value) {
|
||||
loginDialogRef.value.login = !isRegister
|
||||
}
|
||||
|
||||
if (token.value) {
|
||||
setUserToken(token.value)
|
||||
handleRegisterSuccess()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user