feat: 统一两端界面并扩展受权限约束的AI助手
This commit is contained in:
1 parent
79a31ebe9d
commit
0b35a58f07
141 files changed
+7999
-2213
No files matched your search
@@ -15,6 +15,7 @@ import { readFileSync } from 'node:fs';
|
||||
* VERIFY_BASE_URL 默认 http://127.0.0.1:4000
|
||||
*/
|
||||
import { io } from 'socket.io-client';
|
||||
import { verifyClassPlanYamlApi } from './verify-class-plan-yaml-api.mjs';
|
||||
|
||||
const BASE_URL = process.env.VERIFY_BASE_URL ?? `http://127.0.0.1:${process.env.PORT ?? 4000}`;
|
||||
const TIME_LIMIT_MS = 5000;
|
||||
@@ -442,6 +443,8 @@ async function main() {
|
||||
`删除课表 ${removedSchedules} 条、课程 ${removedImportedCourses} 门`,
|
||||
);
|
||||
|
||||
await verifyClassPlanYamlApi({ api, record, adminToken, teacherToken, teacher2Token, teacher1Id });
|
||||
|
||||
// ---------------------------------------------------------------- 3. WebSocket 连接
|
||||
const socket = io(BASE_URL, {
|
||||
auth: { token: studentToken, clientType: 'desktop' },
|
||||
|
||||
Reference in new issue
Block a user