chengjie 5 月之前
父节点
当前提交
8731529d7e
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/api/mps/mpsSchoolController.js

+ 15 - 0
src/api/mps/mpsSchoolController.js

@@ -43,6 +43,9 @@ export async function GetMPSSchool(ctx) {
43 43
             let cachedData = await BufferMemoryClass.get(cacheKey);
44 44
             let result;
45 45
 
46
+            if (process.env.NODE_ENV == 'development')
47
+                cachedData=[];
48
+
46 49
             if (!cachedData || cachedData.length === 0) {
47 50
                 param.District = getDistrict(Number(param.DistrictID));
48 51
                 
@@ -92,6 +95,13 @@ export async function GetMPSSchool(ctx) {
92 95
                     item.push({Name:"初中",List:[]});
93 96
 
94 97
                     for(let i=0;i<list.length;i++){
98
+
99
+                        //紫竹园中学是一般高中的特色高中
100
+                        if (param.SelectType=="structure" && param.DistrictID==2 && list[i].ID==91){
101
+                            list[i].SchoolType2="市特色普通高中";
102
+                            list[i].SchoolType2Short="一般高中";
103
+                        }
104
+
95 105
                         if (list[i].SchoolType1=="初中"){
96 106
                             item[3].List.push(list[i]);
97 107
                         }
@@ -224,6 +234,11 @@ export async function GetMPSSchoolInfo (ctx) {
224 234
         if (info.Introduction2)
225 235
             info.Introduction2 = stringUtils.ReplaceAllString(info.Introduction2.toString(), "\n", "\n\n");
226 236
 
237
+        //紫竹园中学是一般高中的特色高中
238
+        if (info.ID==91){
239
+            info.SchoolType2="市特色普通高中";
240
+            info.SchoolType2Short="一般高中(特色)";
241
+        }
227 242
 
228 243
         if (param.Usage==""){
229 244