|
|
@@ -7,6 +7,7 @@ import config from './config/index.js';
|
|
7
|
7
|
import mpsRouter from './api/mps/routes.js';
|
|
8
|
8
|
import commonRouter from './api/common/routes.js';
|
|
9
|
9
|
import { decryptUrlMiddle } from './util/crypto/index.js';
|
|
|
10
|
+import { stringUtils } from './util/stringClass.js';
|
|
10
|
11
|
|
|
11
|
12
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
12
|
13
|
|
|
|
@@ -42,5 +43,6 @@ app.use(commonRouter.allowedMethods());
|
|
42
|
43
|
|
|
43
|
44
|
// 启动服务器
|
|
44
|
45
|
app.listen(config.port, () => {
|
|
|
46
|
+ console.log('Server IP:', stringUtils.GetServerIP());
|
|
45
|
47
|
console.log(`Server running on port ${config.port}`);
|
|
46
|
48
|
});
|