From 2929cab8700b6495ef9a8c686b958cc765da2595 Mon Sep 17 00:00:00 2001 From: Haofei Yin <735961159@qq.com> Date: Tue, 30 Jul 2024 15:52:48 +0800 Subject: [PATCH] fix bug of apiAddress.ts --- src/Utils/API/apiAddress.ts | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/Utils/API/apiAddress.ts b/src/Utils/API/apiAddress.ts index ceca2d8..e2a0a7e 100644 --- a/src/Utils/API/apiAddress.ts +++ b/src/Utils/API/apiAddress.ts @@ -1,36 +1,15 @@ export default function apiAddress() { - // const port = "9005" const port = "8889" - //jym的测试端口 - // const port = "20000" - //sjq开的端口 - // const port = "20001" - // if (process.env.NODE_ENV === 'development') return { - // CLIENT_SERVER: 'http://api.oj.cs.sdu.edu.cn:8080', - // MANAGE_SERVER: 'http://api.oj.cs.sdu.edu.cn:8080', - // EXAM_SERVER: 'http://api.oj.cs.sdu.edu.cn:8080', - // FRONT_SERVER: 'http://oj.cs.sdu.edu.cn:3000', - // SOCKET_SERVER: "ws://api.oj.cs.sdu.edu.cn:8080" - // } if (process.env.NODE_ENV === 'development') return { - CLIENT_SERVER: 'http://api.test.sduoj.com:' + port, - MANAGE_SERVER: 'http://api.test.sduoj.com:':' + port, - EXAM_SERVER: 'http://api.test.sduoj.com:':' + port, + CLIENT_SERVER: 'http://api.test.sduoj.com:8889', + MANAGE_SERVER: 'http://api.test.sduoj.com:8889', FRONT_SERVER: 'http://test.sduoj.com:3000', - SOCKET_SERVER: 'ws://api.test.sduoj.com:':' + port + SOCKET_SERVER: 'ws://api.test.sduoj.com:8889' } - // return { - // CLIENT_SERVER: 'http://exam.yhf2000.cn:9000', - // MANAGE_SERVER: 'http://exam.yhf2000.cn:9000', - // EXAM_SERVER: 'http://exam.yhf2000.cn:9000', - // FRONT_SERVER: 'http://exam.yhf2000.cn', - // SOCKET_SERVER: "ws://exam.yhf2000.cn:9000" - // } return { CLIENT_SERVER: 'https://oj.qd.sdu.edu.cn', MANAGE_SERVER: 'https://oj.qd.sdu.edu.cn', - EXAM_SERVER: 'https://oj.qd.sdu.edu.cn', FRONT_SERVER: 'https://oj.qd.sdu.edu.cn', SOCKET_SERVER: "wss://oj.qd.sdu.edu.cn" }