|
...
|
...
|
@@ -9,7 +9,7 @@ const tpls = { |
|
|
|
SMS_163050401: '尊敬的贵宾,您好!\n ${seller_name}已为您安排${date}的用餐,房间:${region_room_name}; \n地址:${seller_addr}; \n电话:${seller_phone} \n预祝用餐愉快,${cusman}期待您的光临!',
|
|
|
|
SMS_164277855:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n电话:${seller_phone},预祝用餐愉快!',
|
|
|
|
SMS_164268239:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n地址:${seller_addr},电话:${seller_phone},预祝用餐愉快!',
|
|
|
|
SMS_173950289:'已为您预订${seller_name}的${rooms}包房,用餐时间为${daotime},祝您用餐愉快!订包间享优惠,微信搜索“周到安排”。'
|
|
|
|
SMS_173950289:'已为您预订${seller_name}的${rooms}包房,用餐时间为${shiduan},祝您用餐愉快!订包间享优惠,微信搜索“周到安排”。'
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports ={
|
|
...
|
...
|
@@ -72,6 +72,7 @@ module.exports ={ |
|
|
|
async getTplMsg(bookInfo,tplcode='SMS_163050401',sc=null){
|
|
|
|
let smsData = {}
|
|
|
|
let txa=['早上','中午','晚上']
|
|
|
|
let txb=['早餐','午餐','晚餐']
|
|
|
|
let tx=await bcm.getTimeSpaceIndexData(bookInfo.rdate,sc);
|
|
|
|
if(!bookInfo.rdateStr){
|
|
|
|
bookInfo.rdateStr=util.unixtoTime(bookInfo.ddate, "MM月DD日 HH:II")
|
|
...
|
...
|
@@ -119,7 +120,7 @@ module.exports ={ |
|
|
|
case 'SMS_173950289'://运营安排包间
|
|
|
|
smsData = {
|
|
|
|
seller_name: bookInfo.seller.sellername.substr(0, 20),
|
|
|
|
shiduan: bookInfo.rdateStr.replace('日','日'+txa[tx.timeIndex]),
|
|
|
|
shiduan: bookInfo.rdateStr.replace(/日.*/,'日'+txb[tx.timeIndex]),
|
|
|
|
rooms: this.getTableNameOne(bookInfo.tables).substr(0, 20),
|
|
|
|
}
|
|
|
|
break;
|
...
|
...
|
|