diff --git a/src/utils/webapi.js b/src/utils/webapi.js index 958dbf1..35c7891 100644 --- a/src/utils/webapi.js +++ b/src/utils/webapi.js @@ -168,6 +168,11 @@ export const apiGameStep = async (id) => { const url = `${API_BASE}/api/game/step`; return httpPost(url, { id }) } +// 探索前置 +export const apiPreStep = async (step) => { + const url = `${API_BASE}/api/game/pre_step`; + return httpPost(url, { step }) +} // 签到列表 export const apiCheckin = async (tag) => { @@ -198,6 +203,16 @@ export const apiBoxList = async () => { const url = `${API_BASE}/api/chest/list`; return httpPost(url, { }) } +// 宝箱助力 +export const apiEnhanceBox = async (coder) => { + const url = `${API_BASE}/api/chest/enhance`; + return httpPost(url, {coder}) +} +// 开启宝箱 +export const apiBoxOpen = async (chestId) => { + const url = `${API_BASE}/api/chest/open`; + return httpPost(url, {chestId}) +} export const checkReCaptcha = async(action) =>{ diff --git a/src/views/home/boxBtm.vue b/src/views/home/boxBtm.vue index 377eac8..ed2e3d3 100644 --- a/src/views/home/boxBtm.vue +++ b/src/views/home/boxBtm.vue @@ -231,7 +231,8 @@