Browse Source

优化一下控制台输出

dev
CODE 2 years ago
parent
commit
dca730749b
  1. 6
      api/app/lib/schedule/alarms_push.js

6
api/app/lib/schedule/alarms_push.js

@ -28,9 +28,9 @@ module.exports = function (app, opts) {
const { pushBySms, pushByEmail, sendNoticeToWeb } = app.fs.utils
const curMinOfYear = moment().diff(moment().startOf('year'), 'minutes')
const pLog = (msg1, msg2) => {
const pLog = (...msg) => {
if (proDebug) {
console.log(msg1, msg2)
console.log(msg)
}
}
@ -105,7 +105,7 @@ module.exports = function (app, opts) {
pLog(`curMinOfYear / ${curMinOfYear}`)
for (let { dataValues: c } of configListRes) {
if (isDev && c.id != 95) {
if (isDev && c.id != 86) {
continue
}

Loading…
Cancel
Save