mirror of https://github.com/KingRan/KR.git
parent
3304415760
commit
f1483da4d4
|
@ -31,7 +31,7 @@ const querystring = require('querystring');
|
||||||
const exec = require('child_process').exec;
|
const exec = require('child_process').exec;
|
||||||
const $ = new Env();
|
const $ = new Env();
|
||||||
const timeout = 15000; //超时时间(单位毫秒)
|
const timeout = 15000; //超时时间(单位毫秒)
|
||||||
console.log("加载sendNotify,当前版本: 20220217");
|
console.log("加载sendNotify,当前版本: 20220302");
|
||||||
// =======================================go-cqhttp通知设置区域===========================================
|
// =======================================go-cqhttp通知设置区域===========================================
|
||||||
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
||||||
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
||||||
|
@ -355,11 +355,11 @@ async function sendNotify(text, desp, params = {}, author = '\n\n本通知 By ht
|
||||||
text = "京东CK检测";
|
text = "京东CK检测";
|
||||||
}
|
}
|
||||||
if (process.env.CHECKCK_ALLNOTIFY) {
|
if (process.env.CHECKCK_ALLNOTIFY) {
|
||||||
strAllNotify = process.env.CHECKCK_ALLNOTIFY;
|
strAllNotify = process.env.CHECKCK_ALLNOTIFY;
|
||||||
/* if (strTempNotify.length > 0) {
|
/* if (strTempNotify.length > 0) {
|
||||||
for (var TempNotifyl in strTempNotify) {
|
for (var TempNotifyl in strTempNotify) {
|
||||||
strAllNotify += strTempNotify[TempNotifyl] + '\n';
|
strAllNotify += strTempNotify[TempNotifyl] + '\n';
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
console.log(`检测到设定了温馨提示,将在推送信息中置顶显示...`);
|
console.log(`检测到设定了温馨提示,将在推送信息中置顶显示...`);
|
||||||
strAllNotify = `\n【✨✨✨✨温馨提示✨✨✨✨】\n` + strAllNotify;
|
strAllNotify = `\n【✨✨✨✨温馨提示✨✨✨✨】\n` + strAllNotify;
|
||||||
|
@ -1601,9 +1601,9 @@ function getuuid(strRemark, PtPin) {
|
||||||
|
|
||||||
function getQLinfo(strCK, intcreated, strTimestamp, strRemark) {
|
function getQLinfo(strCK, intcreated, strTimestamp, strRemark) {
|
||||||
var strCheckCK = strCK.match(/pt_key=([^; ]+)(?=;?)/) && strCK.match(/pt_key=([^; ]+)(?=;?)/)[1];
|
var strCheckCK = strCK.match(/pt_key=([^; ]+)(?=;?)/) && strCK.match(/pt_key=([^; ]+)(?=;?)/)[1];
|
||||||
var strPtPin = decodeURIComponent(strCK.match(/pt_pin=([^; ]+)(?=;?)/) && strCK.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
var strPtPin = decodeURIComponent(strCK.match(/pt_pin=([^; ]+)(?=;?)/) && strCK.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||||
var strReturn = "";
|
var strReturn = "";
|
||||||
if (strCheckCK.substring(0, 4) == "AAJh") {
|
if (strCheckCK.substring(0, 3) == "AAJ") {
|
||||||
var DateCreated = new Date(intcreated);
|
var DateCreated = new Date(intcreated);
|
||||||
var DateTimestamp = new Date(strTimestamp);
|
var DateTimestamp = new Date(strTimestamp);
|
||||||
var DateToday = new Date();
|
var DateToday = new Date();
|
||||||
|
|
|
@ -138,8 +138,8 @@ async function jdBeanHome() {
|
||||||
await getTaskList();
|
await getTaskList();
|
||||||
await receiveJd2();
|
await receiveJd2();
|
||||||
|
|
||||||
await morningGetBean()
|
//await morningGetBean()
|
||||||
await $.wait(1000)
|
//await $.wait(1000)
|
||||||
|
|
||||||
await beanTaskList(1)
|
await beanTaskList(1)
|
||||||
await $.wait(1000)
|
await $.wait(1000)
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,7 @@ const querystring = require('querystring');
|
||||||
const exec = require('child_process').exec;
|
const exec = require('child_process').exec;
|
||||||
const $ = new Env();
|
const $ = new Env();
|
||||||
const timeout = 15000; //超时时间(单位毫秒)
|
const timeout = 15000; //超时时间(单位毫秒)
|
||||||
console.log("加载sendNotify,当前版本: 20220217");
|
console.log("加载sendNotify,当前版本: 20220302");
|
||||||
// =======================================go-cqhttp通知设置区域===========================================
|
// =======================================go-cqhttp通知设置区域===========================================
|
||||||
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
//gobot_url 填写请求地址http://127.0.0.1/send_private_msg
|
||||||
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
//gobot_token 填写在go-cqhttp文件设置的访问密钥
|
||||||
|
@ -355,11 +355,11 @@ async function sendNotify(text, desp, params = {}, author = '\n\n本通知 By ht
|
||||||
text = "京东CK检测";
|
text = "京东CK检测";
|
||||||
}
|
}
|
||||||
if (process.env.CHECKCK_ALLNOTIFY) {
|
if (process.env.CHECKCK_ALLNOTIFY) {
|
||||||
strAllNotify = process.env.CHECKCK_ALLNOTIFY;
|
strAllNotify = process.env.CHECKCK_ALLNOTIFY;
|
||||||
/* if (strTempNotify.length > 0) {
|
/* if (strTempNotify.length > 0) {
|
||||||
for (var TempNotifyl in strTempNotify) {
|
for (var TempNotifyl in strTempNotify) {
|
||||||
strAllNotify += strTempNotify[TempNotifyl] + '\n';
|
strAllNotify += strTempNotify[TempNotifyl] + '\n';
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
console.log(`检测到设定了温馨提示,将在推送信息中置顶显示...`);
|
console.log(`检测到设定了温馨提示,将在推送信息中置顶显示...`);
|
||||||
strAllNotify = `\n【✨✨✨✨温馨提示✨✨✨✨】\n` + strAllNotify;
|
strAllNotify = `\n【✨✨✨✨温馨提示✨✨✨✨】\n` + strAllNotify;
|
||||||
|
@ -1601,9 +1601,9 @@ function getuuid(strRemark, PtPin) {
|
||||||
|
|
||||||
function getQLinfo(strCK, intcreated, strTimestamp, strRemark) {
|
function getQLinfo(strCK, intcreated, strTimestamp, strRemark) {
|
||||||
var strCheckCK = strCK.match(/pt_key=([^; ]+)(?=;?)/) && strCK.match(/pt_key=([^; ]+)(?=;?)/)[1];
|
var strCheckCK = strCK.match(/pt_key=([^; ]+)(?=;?)/) && strCK.match(/pt_key=([^; ]+)(?=;?)/)[1];
|
||||||
var strPtPin = decodeURIComponent(strCK.match(/pt_pin=([^; ]+)(?=;?)/) && strCK.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
var strPtPin = decodeURIComponent(strCK.match(/pt_pin=([^; ]+)(?=;?)/) && strCK.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
|
||||||
var strReturn = "";
|
var strReturn = "";
|
||||||
if (strCheckCK.substring(0, 4) == "AAJh") {
|
if (strCheckCK.substring(0, 3) == "AAJ") {
|
||||||
var DateCreated = new Date(intcreated);
|
var DateCreated = new Date(intcreated);
|
||||||
var DateTimestamp = new Date(strTimestamp);
|
var DateTimestamp = new Date(strTimestamp);
|
||||||
var DateToday = new Date();
|
var DateToday = new Date();
|
||||||
|
|
Loading…
Reference in New Issue