shawenguan 1 жил өмнө
parent
commit
1bf2a1dd7d

+ 4 - 3
Scripts/wubian/wubianNotice.js

@@ -110,7 +110,8 @@ async function tryNewNotice() {
                     magicJS.data.write(`WubianNoticePushFlag#${item.hashId}`, true);
                     let retDetail = await getNoticeDetail(item.hashId);
                     if (retDetail && retDetail.code == 200) {
-                        await doCustomWxpusherSend(retDetail.data?.title, retDetail.data?.content);
+                        let url = `https://m.wubian.pro/#/pages/web-view/rich-text?hashId=${item.hashId}`;
+                        await doCustomWxpusherSend(retDetail.data?.title, retDetail.data?.content, url);
                     }
                 }
             }
@@ -118,7 +119,7 @@ async function tryNewNotice() {
     }
 }
 
-async function doCustomWxpusherSend(title, content) {
+async function doCustomWxpusherSend(title, content, url = '') {
     let data = {
         appToken: "AT_7wDWqSoT8xpJCQqJtHpshKhw7kXc0XCW",
         content: content,// 这是主体内容
@@ -129,7 +130,7 @@ async function doCustomWxpusherSend(title, content) {
         uids: [
             "UID_6P4B00X6Zv8U2oKC0I2R09emxtqq"
         ],
-        url: '',
+        url: url,
         verifyPay: false,
         verifyPayType: 0,
     };