优化代码

This commit is contained in:
黄志军
2021-11-13 02:24:38 +08:00
parent ace15397b5
commit faef74610c
3 changed files with 337 additions and 423 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ let postTime = 11
let postDay = 1 let postDay = 1
let cookiesArr = [], cookie = '', jdPlantBeanShareArr = [], isBox = false, notify, newShareCodes, option, subTitle; let cookiesArr = [], cookie = '', jdPlantBeanShareArr = [], isBox = false, notify, newShareCodes, option, subTitle;
let message = "" let message = ""
let dingtalk = "https://oapi.dingtalk.com/robot/send?access_token=18444b555747aad3381bc1d1e3dea72b03158e152a846f818d82a1ca946bd430" let dingtalk = "https://oapi.dingtalk.com/robot/send?access_token=18444b555747aad3381bc1d1e3dea72b03158e152a846f818d82a1ca946bd43f0"
let dingtalk1 = "https://oapi.dingtalk.com/robot/send?access_token=04ab95f07aa0397e7167c6ea3a331bc7fcddbc4cda4a482b1e7e76755f97f6a0" let dingtalk1 = "https://oapi.dingtalk.com/robot/send?access_token=04ab95f07aa0397e7167c6ea3a331bc7fcddbc4cda4a482b1e7e76755f97f6a0"
let roleMap = { let roleMap = {
"jd_4521b375ebb5d": "锟子怪", "jd_4521b375ebb5d": "锟子怪",
@@ -839,7 +839,7 @@ function postToDingTalk1(messgae) {
"msgtype": "markdown", "msgtype": "markdown",
"markdown": { "markdown": {
"title": "种豆得豆", "title": "种豆得豆",
"text": message1 "text": message1
}, },
"at": { "at": {
"atMobiles": [], "atMobiles": [],
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -477,8 +477,8 @@ function try_MyTrials(page, selected) {
count++ count++
} }
if (item.text.text.includes('试用资格将保留10天')) { if (item.text.text.includes('试用资格将保留10天')) {
message1 = "<font color=\'#8552a1\' size=1>" + getManName + "</font>\n\n" message1 = "<font color=\'#8552a1\' size=1>" + `${getManName},` + "</font>\n\n"
message1 = "<font color=\'#4B0082\' size=1>" + `,你的商品待领取,请尽快领取` + "</font>\n\n" message1 = "<font color=\'#4B0082\' size=1>" + `你的商品待领取,请尽快领取` + "</font>\n\n"
message1 += "<font color=\'#ef5b9c\' size=1>" + `成功获取:${item.trialName}` + "</font>\n\n" message1 += "<font color=\'#ef5b9c\' size=1>" + `成功获取:${item.trialName}` + "</font>\n\n"
message1 += "<font color=\'#4B0082\' size=1>" + `剩余时间:${remaining(item.leftTime)}` + "</font>\n\n" message1 += "<font color=\'#4B0082\' size=1>" + `剩余时间:${remaining(item.leftTime)}` + "</font>\n\n"
postToDingTalk2(message1) postToDingTalk2(message1)