后端:

新增群成员接口
This commit is contained in:
西街长安 2026-03-07 13:41:25 +08:00
commit c53b896128
3 changed files with 10 additions and 6 deletions

View File

@ -137,7 +137,7 @@ namespace IM_API
var app = builder.Build(); var app = builder.Build();
string uploadPath = Path.Combine(Directory.GetCurrentDirectory(), "Uploads","files"); string uploadPath = Path.Combine(Directory.GetCurrentDirectory(), "uploads","files");
// 2. 如果文件夹不存在则创建,防止程序启动报错 // 2. 如果文件夹不存在则创建,防止程序启动报错
if (!Directory.Exists(uploadPath)) if (!Directory.Exists(uploadPath))

View File

@ -1,4 +1,8 @@
VITE_API_BASE_URL = http://localhost:5202/api # VITE_API_BASE_URL = http://localhost:5202/api
VITE_SIGNALR_BASE_URL = http://localhost:5202/chat/ # VITE_SIGNALR_BASE_URL = http://localhost:5202/chat/
#VITE_API_BASE_URL = https://im.test.nxsir.cn/api # VITE_API_BASE_URL = https://im.test.nxsir.cn/api
#VITE_SIGNALR_BASE_URL = https://im.test.nxsir.cn/chat/ # VITE_SIGNALR_BASE_URL = https://im.test.nxsir.cn/chat/
VITE_API_BASE_URL = http://192.168.5.116:7070/api
VITE_SIGNALR_BASE_URL = http://192.168.5.116:7070/chat/

View File

@ -8,7 +8,7 @@
content="default-src 'self'; content="default-src 'self';
script-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline';
style-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';
connect-src 'self' http://localhost:5202 ws://localhost:5202; connect-src 'self' http://localhost:5202 ws://localhost:5202 http://192.168.5.116:7070 ws://192.168.5.116:7070;
img-src 'self' data: blob: https: http:; img-src 'self' data: blob: https: http:;
font-src 'self' data:; font-src 'self' data:;
media-src 'self' blob:;"> media-src 'self' blob:;">