/*========================================
取得資料
=========================================*/
function get_data(sheet) {
let ss = SpreadsheetApp.getActiveSpreadsheet()
let ws = ss.getSheetByName(sheet);
if (ws.getLastRow() < 2) return [];//無資料
let data = ws.getSheetValues(2, 1, ws.getLastRow() - 1, ws.getLastColumn());
return data;
}