shawenguan 1 năm trước cách đây
mục cha
commit
98393121b4
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 1
      Scripts/wubian/wubianHelper.js
  2. 2 1
      Scripts/wubian/wubianNotice.js

+ 1 - 1
Scripts/wubian/wubianHelper.js

@@ -444,7 +444,7 @@ function handleNoticeInfo() {
                 jumpType: "",
                 url: "",
                 timeList: [],
-                title: artInfo.onSale == 1 ? artInfo.title : artInfo.title + '(关闭寄售)',
+                title: artInfo.onSale == 1 ? artInfo.title : artInfo.title + '(售)',
                 image: artInfo.image,
                 activityType: "",
                 authorName: artInfo.brandName,

+ 2 - 1
Scripts/wubian/wubianNotice.js

@@ -107,7 +107,8 @@ async function tryNewNotice() {
         // 1个小时内
         let beforeTime = nowTime - 1 * 3600 * 1000;
         let list = retData.data?.list;
-        for (let item of list) {
+        for (let i = list.length - 1; i >= 0; i--) {
+            const item = list[i];
             let createdDate = magicJS.parseDate(item.createdTime, 'yyyy-MM-dd HH:mm:ss');
             if (createdDate.getTime() > beforeTime) {
                 let hasPushed = magicJS.data.read(`WubianNoticePushFlag#${item.hashId}`, false);