|
@@ -204,7 +204,8 @@ module.exports = app => {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(audit.tid);
|
|
|
const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|
|
@@ -254,7 +255,8 @@ module.exports = app => {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(nextAudit.tid);
|
|
|
const stageInfo = await this.ctx.service.stage.getDataById(nextAudit.sid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|
|
@@ -280,7 +282,8 @@ module.exports = app => {
|
|
|
if (smsType[smsTypeConst.const.JL] !== undefined && smsType[smsTypeConst.const.JL].indexOf(smsTypeConst.judge.result.toString()) !== -1) {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(stageInfo.tid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,审批通过。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,审批通过。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|
|
@@ -336,7 +339,8 @@ module.exports = app => {
|
|
|
if (smsType[smsTypeConst.const.JL] !== undefined && smsType[smsTypeConst.const.JL].indexOf(smsTypeConst.judge.result.toString()) !== -1) {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(stageInfo.tid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,审批退回。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,审批退回。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|
|
@@ -398,7 +402,8 @@ module.exports = app => {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(audit.tid);
|
|
|
const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|
|
@@ -606,7 +611,8 @@ module.exports = app => {
|
|
|
const tenderInfo = await this.ctx.service.tender.getDataById(audit.tid);
|
|
|
const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
|
|
|
const sms = new SMS(this.ctx);
|
|
|
- const content = '【纵横计量支付】' + tenderInfo.name + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
+ const tenderName = await sms.contentChange(tenderInfo.name);
|
|
|
+ const content = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
|
|
|
sms.send(smsUser.auth_mobile, content);
|
|
|
}
|
|
|
}
|