``` if ((c >= 2 && c <= 6 || c >= 35 && c <= 39) && app.globalData.total[c - 2].occu === 0) {
temp.push(app.globalData.total[c - 1]);
}
if ((c >= 13 && c <= 33 || c >= 7 && c <= 12 || c >= 40 && c <= 45) && (app.globalData.total[c].occu === 0)) {
temp.push(app.globalData.total[c - 1]);
}
https://segmentfault.com/q/1010000014954341?utm_source=tag-newest