|
@@ -165,7 +165,12 @@ async function tryReserve() {
|
|
|
if (retLstData) {
|
|
if (retLstData) {
|
|
|
let ntfMsgTips = '';
|
|
let ntfMsgTips = '';
|
|
|
let reservationItemVOS = retLstData.reservationItemVOS;
|
|
let reservationItemVOS = retLstData.reservationItemVOS;
|
|
|
- let todayZeroTime = getTodayZeroTime() - 3600 * 24 * 1000;
|
|
|
|
|
|
|
+ let nowDate = new Date();
|
|
|
|
|
+ let todayZeroTime = getTodayZeroTime();
|
|
|
|
|
+ if (nowDate.getHours() < 12) {
|
|
|
|
|
+ todayZeroTime = todayZeroTime - 3600 * 24 * 1000;
|
|
|
|
|
+ }
|
|
|
|
|
+ let isExistSucc = false;
|
|
|
for (let i = 0; i < reservationItemVOS.length; i++) {
|
|
for (let i = 0; i < reservationItemVOS.length; i++) {
|
|
|
const item = reservationItemVOS[i];
|
|
const item = reservationItemVOS[i];
|
|
|
const reservationTime = item.reservationTime;
|
|
const reservationTime = item.reservationTime;
|
|
@@ -180,6 +185,7 @@ async function tryReserve() {
|
|
|
break;
|
|
break;
|
|
|
case 2:
|
|
case 2:
|
|
|
statusStr = '申请成功';
|
|
statusStr = '申请成功';
|
|
|
|
|
+ isExistSucc = true;
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
statusStr = `未知状态(${item.status})`;
|
|
statusStr = `未知状态(${item.status})`;
|
|
@@ -188,7 +194,11 @@ async function tryReserve() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (ntfMsgTips && ntfMsgTips.length > 0) {
|
|
if (ntfMsgTips && ntfMsgTips.length > 0) {
|
|
|
- magicJS.fastWxpusherSend(ntfMsgTips, 'i茅台申购结果');
|
|
|
|
|
|
|
+ if (isExistSucc) {
|
|
|
|
|
+ magicJS.fastWxpusherSend(ntfMsgTips, 'i茅台申购成功');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ magicJS.fastWxpusherSend(ntfMsgTips, 'i茅台申购结果');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|