diff --git a/cloudfunctions-aliyun/send/index.js b/cloudfunctions-aliyun/send/index.js index c1d7aae..b85c734 100644 --- a/cloudfunctions-aliyun/send/index.js +++ b/cloudfunctions-aliyun/send/index.js @@ -5,8 +5,8 @@ function getFormatDate(ms) { let date = new Date(); date.setTime(date.getTime() + ms); const year = date.getFullYear(); - const month = date.getMonth() + 1; - const strDate = date.getDate(); + let month = date.getMonth() + 1; + let strDate = date.getDate(); if (month >= 1 && month <= 9) { month = '0' + month; } @@ -96,4 +96,4 @@ exports.main = async (event, context) => { }); return Promise.all(sendPromises) -}; \ No newline at end of file +};