chengjie 5 månader sedan
förälder
incheckning
8731529d7e
1 ändrade filer med 15 tillägg och 0 borttagningar
  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
             let cachedData = await BufferMemoryClass.get(cacheKey);
43
             let cachedData = await BufferMemoryClass.get(cacheKey);
44
             let result;
44
             let result;
45
 
45
 
46
+            if (process.env.NODE_ENV == 'development')
47
+                cachedData=[];
48
+
46
             if (!cachedData || cachedData.length === 0) {
49
             if (!cachedData || cachedData.length === 0) {
47
                 param.District = getDistrict(Number(param.DistrictID));
50
                 param.District = getDistrict(Number(param.DistrictID));
48
                 
51
                 
@@ -92,6 +95,13 @@ export async function GetMPSSchool(ctx) {
92
                     item.push({Name:"初中",List:[]});
95
                     item.push({Name:"初中",List:[]});
93
 
96
 
94
                     for(let i=0;i<list.length;i++){
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
                         if (list[i].SchoolType1=="初中"){
105
                         if (list[i].SchoolType1=="初中"){
96
                             item[3].List.push(list[i]);
106
                             item[3].List.push(list[i]);
97
                         }
107
                         }
@@ -224,6 +234,11 @@ export async function GetMPSSchoolInfo (ctx) {
224
         if (info.Introduction2)
234
         if (info.Introduction2)
225
             info.Introduction2 = stringUtils.ReplaceAllString(info.Introduction2.toString(), "\n", "\n\n");
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
         if (param.Usage==""){
243
         if (param.Usage==""){
229
 
244