local changes

This commit is contained in:
2022-11-18 12:47:11 +01:00
parent e5574b5686
commit 923b2f1dc2
2 changed files with 27 additions and 8 deletions
+20
View File
@@ -97,3 +97,23 @@ adb -s 2140c70c shell am start -n com.android.chrome/com.google.android.apps.chr
adb -s G7AZCY07H415CT3 shell pm clear com.android.chrome
adb -s G7AZCY07H415CT3 shell am set-debug-app --persistent com.android.chrome
adb -s G7AZCY07H415CT3 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
#xiao mi
adb -s 192.168.56.107:5555 shell pm clear com.android.chrome
adb -s 192.168.56.107:5555 shell am set-debug-app --persistent com.android.chrome
adb -s 192.168.56.107:5555 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
#xiao mi
adb -s 192.168.56.105:5555 shell pm clear com.android.chrome
adb -s 192.168.56.105:5555 shell am set-debug-app --persistent com.android.chrome
adb -s 192.168.56.105:5555 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
#xiao mi
adb -s 192.168.56.109:5555 shell pm clear com.android.chrome
adb -s 192.168.56.109:5555 shell am set-debug-app --persistent com.android.chrome
adb -s 192.168.56.109:5555 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
#xiao mi
adb -s 192.168.56.110:5555 shell pm clear com.android.chrome
adb -s 192.168.56.110:5555 shell am set-debug-app --persistent com.android.chrome
adb -s 192.168.56.110:5555 shell am start -n com.android.chrome/com.google.android.apps.chrome.Main
+6 -7
View File
@@ -145,28 +145,27 @@ async function startBookWithNumbers(startNumber, endNumber, selectedStore, pathT
return
}
mongoManager.connect().then(r => {
filterAlreadyAccepteddContacts(contactList).then(notAcceptedContacts => {
filterAlreadyBookedContacts(contactList).then((listToBook)=>{
filterAlreadyAccepteddContacts(listToBook).then(notAcceptedContacts => {
filterBlacklistedContacts(notAcceptedContacts).then(listWithoutBlackContact => {
filterAlreadyBookedContacts(listWithoutBlackContact).then(listToBook => {
console.log("number of contacts to book:" + listToBook.length)
console.log("number of contacts to book:" + listWithoutBlackContact.length)
android.devices().then((devices) => {
if (devices.length === 0) {
alert("未找到连接的设备");
return
}
let segmentNumber = listToBook.length / devices.length;
let segmentNumber = listWithoutBlackContact.length / devices.length;
console.log("connected device number:" + devices.length)
console.log("segmentNumber:" + segmentNumber)
for (let i = 0; i < devices.length; i++) {
startWithList(listToBook.slice(i * segmentNumber, segmentNumber * (i + 1)), devices[i], selectedStore, audioAnalyse, alertBeep);
startWithList(listWithoutBlackContact.slice(i * segmentNumber, segmentNumber * (i + 1)), devices[i], selectedStore, audioAnalyse, alertBeep);
}
})
})
}
)
})
}
)
});
}
module.exports = startBookWithNumbers