Skip to content

Commit bd6f02a

Browse files
author
lrhh123
committed
fix: chrome Old version support
1 parent 5d41faf commit bd6f02a

File tree

6 files changed

+52
-1
lines changed

6 files changed

+52
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.0.1
2+
* 修复旧版本 chrome 无法下载驱动的 BUG
3+
* 修复应用开启多个进程的 BUG
4+
5+
16
# 1.0.0
27
- [x] 多平台支持:当前支持哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台,未来将不断扩展支持更多社交媒体平台。
38
- [x] 预设回复内容:允许用户设置自定义回复,以应对常见问题,提高回复效率。

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 懒人客服简介
22
本项目是基于大模型的智能对话客服工具,支持哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台接入,可选择 GPT3.5/GPT4.0/ [懒人百宝箱](https://chat.lazaytools.top/) (后续会支持更多平台),能处理文本、语音和图片,通过插件访问操作系统和互联网等外部资源,支持基于自有知识库定制企业 AI 应用。
33

4+
注:本项目只是一个用于对接外部平台的客服工具,不提供任何平台的账号,需要自行准备。并且知识库功能也需要自行准备,该项目目前只支持的 OpenAI 的 API 接口(或代理)接入
45

56
## 主要功能
67
- [x] 多平台支持:当前支持哔哩哔哩、抖音企业号、抖音、抖店、微博聊天、小红书专业号运营、小红书、知乎等平台,未来将不断扩展支持更多社交媒体平台。
@@ -30,7 +31,7 @@
3031

3132
## 下载地址
3233

33-
<a href="https://wwp.lanzouo.com/iCntL1qukopc" style="display: inline-block; background-color: #008CBA; color: white; padding: 10px 20px; text-align: center; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 4px 2px; cursor: pointer;">点击下载</a>
34+
<a href="https://wwp.lanzouo.com/iwX9k1r0bitc" style="display: inline-block; background-color: #008CBA; color: white; padding: 10px 20px; text-align: center; text-decoration: none; font-weight: bold; border-radius: 5px; margin: 4px 2px; cursor: pointer;">点击下载</a>
3435

3536

3637
## 使用说明

release/app/package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/app/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "chatgpt-on-cs",
3+
"version": "1.0.1",
4+
"description": "多平台智能客服,允许使用 ChatGPT 作为客服机器人",
5+
"license": "AGPL-3.0",
6+
"author": {
7+
"name": "lrhh123",
8+
"email": "lrhh123@users.noreply.github.com",
9+
"url": "https://github.com/lrhh123"
10+
},
11+
"main": "./dist/main/main.js",
12+
"scripts": {
13+
"rebuild": "node -r ts-node/register ../../.erb/scripts/electron-rebuild.js",
14+
"postinstall": "pnpm run rebuild && pnpm run link-modules",
15+
"link-modules": "node -r ts-node/register ../../.erb/scripts/link-modules.ts"
16+
},
17+
"dependencies": {}
18+
}

release/app/pnpm-lock.yaml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import BackendServiceManager from './system/backend';
1818
let mainWindow: BrowserWindow | null = null;
1919
let backendServiceManager: BackendServiceManager | null = null;
2020

21+
const gotTheLock = app.requestSingleInstanceLock();
22+
2123
if (process.env.NODE_ENV === 'production') {
2224
const sourceMapSupport = require('source-map-support');
2325
sourceMapSupport.install();
@@ -77,6 +79,12 @@ const createWindow = async () => {
7779
},
7880
});
7981

82+
if (!gotTheLock) {
83+
// 如果获取不到锁,说明已有一个实例在运行,直接退出
84+
app.quit();
85+
return;
86+
}
87+
8088
setupIpcHandlers(mainWindow, backendServiceManager);
8189

8290
mainWindow.loadURL(resolveHtmlPath('index.html'));

0 commit comments

Comments
 (0)