[skip ci] Update version to v1.5.67

This commit is contained in:
Gitea Actions Bot
2025-11-03 11:52:42 +08:00
parent 8a5da5e906
commit 7054beebeb
2 changed files with 151 additions and 184 deletions

View File

@@ -43,40 +43,7 @@ VERSION = "1.0"
WINDOW_TITLE = "AI回复连接入口-V1.0" WINDOW_TITLE = "AI回复连接入口-V1.0"
# 应用版本号(用于版本检查) # 应用版本号(用于版本检查)
APP_VERSION = "1.5.66" APP_VERSION = "1.5.67"
# 🔥 多实例运行模式开关
# - True: 测试模式多实例不保存token避免冲突
# - False: 生产模式单实例保存token自动加载
#
# 使用方法:
# 1. 修改此值MULTI_INSTANCE_MODE = False # 改为生产模式
# 2. 或设置环境变量SHUIDROP_MULTI_INSTANCE=0 # 临时切换到生产模式
MULTI_INSTANCE_MODE = True # 默认:测试模式
def is_multi_instance_mode() -> bool:
"""
检查是否为多实例模式(支持环境变量覆盖)
优先级:
1. 环境变量 SHUIDROP_MULTI_INSTANCE0=生产1=测试)
2. 配置文件 MULTI_INSTANCE_MODE
Returns:
bool: True=多实例模式False=单实例模式
"""
# 检查环境变量
env_value = os.getenv('SHUIDROP_MULTI_INSTANCE')
if env_value is not None:
# 0, false, False, no, No → 生产模式
if env_value.lower() in ('0', 'false', 'no'):
return False
# 1, true, True, yes, Yes → 测试模式
if env_value.lower() in ('1', 'true', 'yes'):
return True
# 使用配置文件值 (如果不做设置我们可以直接用编码变量进行控制是否可以允许多实例的方式运行)
return MULTI_INSTANCE_MODE
# 平台特定配置 # 平台特定配置
PLATFORMS = { PLATFORMS = {

View File

@@ -1,4 +1,20 @@
[ [
{
"version": "1.5.67",
"update_type": "patch",
"content": "[skip ci] Update version to v1.5.66",
"author": "Gitea Actions Bot",
"commit_hash": "2083516b8c66377b5f13df0989fce0eeb82c105e",
"commit_short_hash": "2083516b",
"branch": "develop",
"release_time": "2025-11-03 11:31:45",
"download_url": "https://shuidrop-chat-server.ks3-cn-guangzhou.ksyuncs.com/installers/ShuiDi_AI_Assistant_Setup_v1.5.67.exe",
"stats": {
"files_changed": 2,
"lines_added": 17,
"lines_deleted": 17
}
},
{ {
"version": "1.5.66", "version": "1.5.66",
"update_type": "patch", "update_type": "patch",
@@ -782,21 +798,5 @@
"lines_added": 31, "lines_added": 31,
"lines_deleted": 47 "lines_deleted": 47
} }
},
{
"version": "1.4.23",
"update_type": "patch",
"content": "Merge remote-tracking branch 'origin/develop' into develop",
"author": "haosicheng",
"commit_hash": "0d9ab498b1bb8df1372e028978f69ad096f47869",
"commit_short_hash": "0d9ab498",
"branch": "develop",
"release_time": "2025-10-10 15:35:22",
"download_url": "https://shuidrop.com/download/gui/ShuiDi_AI_Assistant_Setup_v1.4.23.exe",
"stats": {
"files_changed": 5,
"lines_added": 200,
"lines_deleted": 11
}
} }
] ]