From 52f55f31e374b8d56eca6198660fe7ca36d22dec Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 9 Aug 2022 08:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/app/lib/schedule/cameraStatePush.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js index bedff93..c038f4b 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js @@ -138,12 +138,12 @@ module.exports = function (app, opts) { let templateParam = { name: corUser[0].username, } - let useTempCode = 'SMS_247900122' + let useTempCode = 'SMS_248205074' // let text = `【${corUser[0].username}】账号下的` if (offArr.length == 1) { // text += `【${offArr[0].name}】离线,请及时处理!【${moment(offArr[0].time).format('MM月DD日 HH时mm分')}】` templateParam.deviceName = `【${offArr[0].name}】` - templateParam.time = moment(offArr[0].time).format('MM月DD日 HH时mm分') + templateParam.timeRange = moment(offArr[0].time).format('MM月DD日 HH时mm分') } else { let text = '' text += offArr.map(o => `【${o.name}】`).join('') @@ -151,11 +151,11 @@ module.exports = function (app, opts) { text = text.substring(0, 35) + '...' // text += `等${offArr.length}个摄像头离线` templateParam.deviceCount = offArr.length - useTempCode = 'SMS_247985123' + useTempCode = 'SMS_248250074' } templateParam.deviceName = text // text += `,请及时处理!【${moment().format('MM月DD日HH时mm分')}-${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】` - templateParam.time = `【${moment().format('MM月DD日HH时mm分')} -${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】` + templateParam.timeRange = `【${moment().format('MM月DD日HH时mm分')} -${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】` } await pushBySms({ phone: receiver, @@ -208,11 +208,11 @@ module.exports = function (app, opts) { let templateParam = { name: corUser[0].username, } - let useTempCode = 'SMS_247820204' + let useTempCode = 'SMS_248120080' if (onArr.length == 1) { // text += `【${onArr[0].name}】已恢复上线,请及时处理!【${moment(onArr[0].time).format('MM月DD日 HH时mm分')}】` templateParam.deviceName = `【${onArr[0].name}】` - templateParam.time = moment(onArr[0].time).format('MM月DD日 HH时mm分') + templateParam.date = moment(onArr[0].time).format('MM月DD日 HH时mm分') } else { let text = '' text += onArr.map(o => `【${o.name}】`).join('') @@ -220,11 +220,11 @@ module.exports = function (app, opts) { text = text.substring(0, 35) + '...' // text += `等${onArr.length}个摄像头已恢复上线!` templateParam.deviceCount = onArr.length - useTempCode = 'SMS_247825189' + useTempCode = 'SMS_248120080' } templateParam.deviceName = text // text += `【${moment().format('MM月DD日HH时mm分')}-${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】!` - templateParam.time = `【${moment().format('MM月DD日HH时mm分')}-${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】!` + templateParam.timeRange = `【${moment().format('MM月DD日HH时mm分')}-${moment(timeNow).subtract(15, 'minutes').format('MM月DD日HH时mm分')}】!` } await pushBySms({ phone: receiver,