|
@@ -239,19 +239,19 @@ async function sendCompilationStatusSms(callback) {
|
|
|
if (userList.length > 0) {
|
|
|
const Sms = new SMS();
|
|
|
for (let user of userList) {
|
|
|
- let ssoId = JSON.parse(JSON.stringify(user)).ssoId;
|
|
|
+ // let ssoId = JSON.parse(JSON.stringify(user)).ssoId;
|
|
|
for (let cul of user.upgrade_list) {
|
|
|
if (cul.deadline === today) {
|
|
|
- cul.deadline = '';
|
|
|
+ // cul.deadline = '';
|
|
|
// cul.isUpgrade = false;
|
|
|
// 发送短信
|
|
|
let compilationData = await compilationModel.findOne({_id: cul.compilationID});
|
|
|
await Sms.sendProductMsg(user.mobile, 2, user.real_name, compilationData.name, '');
|
|
|
}
|
|
|
}
|
|
|
- functions.push(function (cb) {
|
|
|
- userModel.update({ssoId: ssoId}, {upgrade_list: user.upgrade_list}, { multi: true }, cb);
|
|
|
- });
|
|
|
+ // functions.push(function (cb) {
|
|
|
+ // userModel.update({ssoId: ssoId}, {upgrade_list: user.upgrade_list}, { multi: true }, cb);
|
|
|
+ // });
|
|
|
}
|
|
|
}
|
|
|
if(functions.length > 0){
|