Showing
1 changed file
with
3 additions
and
2 deletions
| @@ -9,7 +9,7 @@ const tpls = { | @@ -9,7 +9,7 @@ const tpls = { | ||
| 9 | SMS_163050401: '尊敬的贵宾,您好!\n ${seller_name}已为您安排${date}的用餐,房间:${region_room_name}; \n地址:${seller_addr}; \n电话:${seller_phone} \n预祝用餐愉快,${cusman}期待您的光临!', | 9 | SMS_163050401: '尊敬的贵宾,您好!\n ${seller_name}已为您安排${date}的用餐,房间:${region_room_name}; \n地址:${seller_addr}; \n电话:${seller_phone} \n预祝用餐愉快,${cusman}期待您的光临!', |
| 10 | SMS_164277855:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n电话:${seller_phone},预祝用餐愉快!', | 10 | SMS_164277855:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n电话:${seller_phone},预祝用餐愉快!', |
| 11 | SMS_164268239:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n地址:${seller_addr},电话:${seller_phone},预祝用餐愉快!', | 11 | SMS_164268239:'贵宾您好!${seller_name}为您预留${date}的${region_room_name};\n地址:${seller_addr},电话:${seller_phone},预祝用餐愉快!', |
| 12 | - SMS_173950289:'已为您预订${seller_name}的${rooms}包房,用餐时间为${daotime},祝您用餐愉快!订包间享优惠,微信搜索“周到安排”。' | 12 | + SMS_173950289:'已为您预订${seller_name}的${rooms}包房,用餐时间为${shiduan},祝您用餐愉快!订包间享优惠,微信搜索“周到安排”。' |
| 13 | }; | 13 | }; |
| 14 | 14 | ||
| 15 | module.exports ={ | 15 | module.exports ={ |
| @@ -72,6 +72,7 @@ module.exports ={ | @@ -72,6 +72,7 @@ module.exports ={ | ||
| 72 | async getTplMsg(bookInfo,tplcode='SMS_163050401',sc=null){ | 72 | async getTplMsg(bookInfo,tplcode='SMS_163050401',sc=null){ |
| 73 | let smsData = {} | 73 | let smsData = {} |
| 74 | let txa=['早上','中午','晚上'] | 74 | let txa=['早上','中午','晚上'] |
| 75 | + let txb=['早餐','午餐','晚餐'] | ||
| 75 | let tx=await bcm.getTimeSpaceIndexData(bookInfo.rdate,sc); | 76 | let tx=await bcm.getTimeSpaceIndexData(bookInfo.rdate,sc); |
| 76 | if(!bookInfo.rdateStr){ | 77 | if(!bookInfo.rdateStr){ |
| 77 | bookInfo.rdateStr=util.unixtoTime(bookInfo.ddate, "MM月DD日 HH:II") | 78 | bookInfo.rdateStr=util.unixtoTime(bookInfo.ddate, "MM月DD日 HH:II") |
| @@ -119,7 +120,7 @@ module.exports ={ | @@ -119,7 +120,7 @@ module.exports ={ | ||
| 119 | case 'SMS_173950289'://运营安排包间 | 120 | case 'SMS_173950289'://运营安排包间 |
| 120 | smsData = { | 121 | smsData = { |
| 121 | seller_name: bookInfo.seller.sellername.substr(0, 20), | 122 | seller_name: bookInfo.seller.sellername.substr(0, 20), |
| 122 | - shiduan: bookInfo.rdateStr.replace('日','日'+txa[tx.timeIndex]), | 123 | + shiduan: bookInfo.rdateStr.replace(/日.*/,'日'+txb[tx.timeIndex]), |
| 123 | rooms: this.getTableNameOne(bookInfo.tables).substr(0, 20), | 124 | rooms: this.getTableNameOne(bookInfo.tables).substr(0, 20), |
| 124 | } | 125 | } |
| 125 | break; | 126 | break; |
-
Please register or login to post a comment