diff --git a/build.txt b/build.txt
index c2afb15..74d0a99 100644
--- a/build.txt
+++ b/build.txt
@@ -1 +1 @@
-"20220525220007"
\ No newline at end of file
+"2022.05.25.23.41"
\ No newline at end of file
diff --git a/ckc.20220525220007.zip b/ckc.2022.05.25.23.41.zip
similarity index 98%
rename from ckc.20220525220007.zip
rename to ckc.2022.05.25.23.41.zip
index a30e8b8..462ec31 100644
Binary files a/ckc.20220525220007.zip and b/ckc.2022.05.25.23.41.zip differ
diff --git a/docker.txt b/docker.txt
new file mode 100644
index 0000000..10f0d02
--- /dev/null
+++ b/docker.txt
@@ -0,0 +1 @@
+1653493144
\ No newline at end of file
diff --git a/docker/api/cron.js b/docker/api/cron.js
index e82e8ca..cc4296f 100644
--- a/docker/api/cron.js
+++ b/docker/api/cron.js
@@ -157,10 +157,10 @@ for( const item of to_checks )
{
const title = '监测点['+item.title+']有新通知';
- let desp = check_content?.substring(0,50) + (item.last_content ? ('←' + item.last_content.substring(0,50)):"");
+ let desp = check_content?.substring(0,50) + (item.last_content && item.when == 'change' ? ('←' + item.last_content.substring(0,50)):"");
if( check_html )
- desp += "\r\n\r\n" + to_markdown(check_html);
+ desp += "\r\n\r\n---\r\n\r\n" + to_markdown(check_html);
// const title = check_content.length > 50 ? '监测点['+item.title+']有新通知' : ( '监测点['+item.title+']有新通知: ' + check_content + (item.last_content ? ('←' + item.last_content):"") );
diff --git a/docker/api/func.js b/docker/api/func.js
index ff24a2e..843ada6 100644
--- a/docker/api/func.js
+++ b/docker/api/func.js
@@ -210,7 +210,7 @@ async function monitor_dom_low(url, path, delay , cookies)
html += item.outerHTML ? item.outerHTML + "
" : "";
}
- return {text:texts.join(" \n "),html,all};
+ return {text:texts[0]||"",html,all};
}
async function monitor_dom(url, path, delay , cookies)
@@ -259,7 +259,7 @@ async function monitor_dom(url, path, delay , cookies)
if( item.innerText ) texts.push(item.innerText?.trim());
html += item.outerHTML ? item.outerHTML + "
" : "";
}
- return {html,text:texts.join(" \n "),"all":window.document.documentElement.innerHTML};
+ return {html,text:texts[0]||"","all":window.document.documentElement.innerHTML};
},path);
const { all,html, ...ret_short } = ret;
console.log("ret",ret_short);
diff --git a/ext.html b/ext.html
index f06033e..810c071 100644
--- a/ext.html
+++ b/ext.html
@@ -1 +1 @@
-
Check酱是一个通用网页内容监控工具,可以监测网页内容变化,并发送异动到微信
docker run -e API_KEY=YouRAPiK1 -e TZ=Asia/Chongqing -e ERROR_IMAGE=NORMAL -p 8088:80 -v $PWD:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest
-目前Check酱正在内测,尚未上架Edge商店,只能通过手工方式载入
下载插件ZIP包,解压为目录(后文称其为A)。
+下载插件ZIP包,解压为目录(后文称其为A)。
打开Edge的插件页面,打开「开发者模式」,点击「Load Unpacked」,选择上边解压得到的目录A。
成功载入的话,就可以看到Check酱界面了。如果失败,通常是因为解压时多了一层目录导致的,可以试试重新选择A目录的下一级目录