chengjie 6 月之前
父节点
当前提交
1e764ff38d
共有 4 个文件被更改,包括 7 次插入5 次删除
  1. 1 1
      README.md
  2. 3 3
      src/api/mps/mpsCommonController.js
  3. 2 0
      src/api/mps/mpsScoreController.js
  4. 1 1
      src/config/prod.js

+ 1 - 1
README.md

@@ -30,7 +30,7 @@ nvm use
30
 
30
 
31
 ```bash
31
 ```bash
32
 # 克隆仓库
32
 # 克隆仓库
33
-git clone http://81.68.248.121:3000/kylx365/miaoguo_system_server.git
33
+git clone https://scoreline.kylx365.com/kylx365/miaoguo_system_server.git
34
 cd miaoguo_system_server
34
 cd miaoguo_system_server
35
 
35
 
36
 # 确保使用正确的 Node.js 版本
36
 # 确保使用正确的 Node.js 版本

+ 3 - 3
src/api/mps/mpsCommonController.js

@@ -25,7 +25,7 @@ export async function MPSDefault(ctx) {
25
 export async function WebMPSHtml(ctx) {
25
 export async function WebMPSHtml(ctx) {
26
     let cookie = ctx.cookies.get("test");
26
     let cookie = ctx.cookies.get("test");
27
     
27
     
28
-    if (ctx.req.headers.host == "localhost:3000") {
28
+    if (ctx.req.headers.host == "localhost:"+config.port) {
29
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
29
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
30
     }
30
     }
31
 
31
 
@@ -45,7 +45,7 @@ export async function WebMPSHtml(ctx) {
45
 export async function WebMPSSchoolHtml(ctx) {
45
 export async function WebMPSSchoolHtml(ctx) {
46
     let cookie = ctx.cookies.get("test");
46
     let cookie = ctx.cookies.get("test");
47
     
47
     
48
-    if (ctx.req.headers.host == "localhost:3000") {
48
+    if (ctx.req.headers.host == "localhost:"+config.port) {
49
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
49
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
50
     }
50
     }
51
 
51
 
@@ -65,7 +65,7 @@ export async function WebMPSSchoolHtml(ctx) {
65
 export async function WebMPSErrorHtml(ctx) {
65
 export async function WebMPSErrorHtml(ctx) {
66
     let cookie = ctx.cookies.get("test");
66
     let cookie = ctx.cookies.get("test");
67
     
67
     
68
-    if (ctx.req.headers.host == "localhost:3000") {
68
+    if (ctx.req.headers.host == "localhost:"+config.port) {
69
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
69
         cookie = "+yqoClZSJfwPPQwow7K12IboznGF059HmGsK1lpS+4Y=";
70
     }
70
     }
71
 
71
 

+ 2 - 0
src/api/mps/mpsScoreController.js

@@ -235,6 +235,8 @@ export async function GetMPSScore(ctx) {
235
 
235
 
236
         sql += sqlOrder;
236
         sql += sqlOrder;
237
 
237
 
238
+        console.log(sql);
239
+
238
         var list = await mps.RunSql({}, sql);
240
         var list = await mps.RunSql({}, sql);
239
 
241
 
240
         if (param.ScoreType == "自主招生") {
242
         if (param.ScoreType == "自主招生") {

+ 1 - 1
src/config/prod.js

@@ -12,7 +12,7 @@ export default {
12
         aes_key: 'kylx365_chengjie',
12
         aes_key: 'kylx365_chengjie',
13
         aes_iv: 'kylx365hongliren'
13
         aes_iv: 'kylx365hongliren'
14
     },
14
     },
15
-    port: process.env.PORT || 3000,
15
+    port: process.env.PORT || 3030,
16
     fontsPathPingFang:"/usr/share/fonts/chinese/PingFang.ttc",
16
     fontsPathPingFang:"/usr/share/fonts/chinese/PingFang.ttc",
17
     fontsPathKaiti:"/usr/share/fonts/chinese/Kaiti.ttc",
17
     fontsPathKaiti:"/usr/share/fonts/chinese/Kaiti.ttc",
18
     fontsPathSFUIDisplayBlack:"/usr/share/fonts/chinese/SF-UI-Display-Black.otf",
18
     fontsPathSFUIDisplayBlack:"/usr/share/fonts/chinese/SF-UI-Display-Black.otf",