diff --git a/src/appointment.js b/src/appointment.js index b40e6af..2c7a68c 100644 --- a/src/appointment.js +++ b/src/appointment.js @@ -64,12 +64,15 @@ async function startBookWithNumbers(startNumber, endNumber, selectedStore, pathT if (endNumber <= allContactList.length) { contactList = allContactList.slice(startNumber, endNumber); } else { - contactList = allContactList; + contactList = allContactList.slice(startNumber, allContactList.length); } if (contactList.length === 0) { alert("联系人数为0") return } + contactList.forEach((contact) => { + console.log(contact.mail) + }) mongoManager.connect().then(r => { filterAlreadyBookedContacts(contactList).then(listToBook => { console.log("number of contacts to book:" + listToBook.length)