chengjie 5 月之前
父節點
當前提交
1cc0c28d8b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/api/mps/mpsCommonController.js

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

@@ -370,7 +370,7 @@ export async function GetMPSNotice(ctx) {
370 370
             "今年夏天要读的书,必须是《录取通知书》,祝孩子们中考考出最优成绩!",
371 371
             "最新的上海16区统一招生1-15志愿各校计划整理完毕,欢迎查看!"
372 372
         ];
373
-        let rand=stringUtils.Random(0,content.length);
373
+        let rand=stringUtils.Random(0,content.length-1);
374 374
         result.Content=content[rand];
375 375
 
376 376
         // const content=[