# 搶場地SOP(技擊館) > 場地預約網址:https://bwd.xuanen.com.tw/wd16.aspx > Tips: 一個帳號最多只能搶兩個場地 > 繳費需打公司統編:90861985 ## 搶場地前置需求 - 擁有帳號,[註冊網址點我](https://bwd.xuanen.com.tw/wd16.aspx?Module=member&files=member_mt) - 確認搶票時間,前一週的前一天搶(e.g. 搶下星期日的 需要當週日晚上、星期一凌晨搶) ## 步驟 1. 進入預約網址:https://bwd.xuanen.com.tw/wd16.aspx 1. 登入自己帳號 1. 開啟網頁的開發者工具(對網頁點擊右鍵=>選擇檢查) > ![](https://hackmd.io/_uploads/HJmplsoPi.png?size) 1. 點擊畫面到`console`頁面 ![](https://hackmd.io/_uploads/ryaFzjoPj.png) 1. 複製以下程式碼到預約網站的`console`並點擊`enter`執行 > 羽東 4-6 3個場地,請大家複製個人名字下方的程式碼貼上(點擊三角形展開按鈕) :::spoiler 安妮 ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=4&QTime=15&PT=1&D=2024/09/29';// 羽東1 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=4&QTime=16&PT=1&D=2024/09/29';// 羽東1 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from response.json() call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler 翠翠 ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=5&QTime=15&PT=1&D=2024/09/29';// 羽東2 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=5&QTime=16&PT=1&D=2024/09/29';// 羽東2 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from response.json() call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler RB ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=6&QTime=15&PT=1&D=2024/09/29';// 羽東3 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=6&QTime=16&PT=1&D=2024/09/29';// 羽東3 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from `response.json()` call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler - 會飛 ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=7&QTime=15&PT=1&D=2024/09/29';// 羽東4 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=7&QTime=16&PT=1&D=2024/09/29';// 羽東4 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from `response.json()` call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler -卡茲 ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=4&QTime=15&PT=1&D=2024/09/29';// 羽東1 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=4&QTime=16&PT=1&D=2024/09/29';// 羽東1 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from response.json() call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler -鮪魚 ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=5&QTime=15&PT=1&D=2024/09/29';// 羽東2 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=5&QTime=16&PT=1&D=2024/09/29';// 羽東2 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from response.json() call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: :::spoiler - ```javascript // 正式要搶的場地 const bookingUrl = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=6&QTime=15&PT=1&D=2023/08/27';// 羽東3 const bookingUrl2 = 'https://bwd.xuanen.com.tw/wd16.aspx?module=net_booking&files=booking_place&StepFlag=25&QPid=6&QTime=16&PT=1&D=2023/08/27';// 羽東3 /** 訂場地 */ function orderPlace(bookingUrl) { postData(bookingUrl, {}) .then(data => console.log(data)) // JSON from `response.json()` call .catch(error => console.error(error)) } setInterval(()=>{ // 如果現在時間是凌晨12點整就執行 if(new Date().getHours() == 0 && new Date().getMinutes() == 0 && new Date().getSeconds() == 0){ console.log('執行'); orderPlace(bookingUrl); orderPlace(bookingUrl2); }else{ console.log('現在時間不是凌晨12點整'); } },100) function postData(url, data) { return fetch(url, { cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached credentials: 'same-origin', // include, same-origin, *omit headers: { 'user-agent': 'Mozilla/4.0 MDN Example', 'content-type': 'application/json' }, method: 'GET', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, cors, *same-origin redirect: 'follow', // manual, *follow, error referrer: 'no-referrer', // *client, no-referrer }) } ``` ::: 1. 確認程式有在執行(如圖) > ![](https://hackmd.io/_uploads/S1ggEsiws.png) 1. 經過12點,即可至網站確認場地搶佔是否搶佔成功 https://bwd.xuanen.com.tw/wd16.aspx?module=member&files=orderx_mt 1. 先把搶到的場地資訊截圖到酸黃瓜,確認需保留的場地號碼(確認保留的話10分鐘內要付款) 1. 若有搶到在進行信用卡付款,不需保留的場地取消即可 1. 填寫時需在最下方填寫公司統編:90861985 ###### tags: `羽球社`