Skip to content

Commit

Permalink
fix bug of apiAddress.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yhf2000 authored Jul 30, 2024
1 parent bb0c4fb commit 2929cab
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions src/Utils/API/apiAddress.ts
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down

0 comments on commit 2929cab

Please sign in to comment.