From 3aa761d3efe489838fd7b40789aa211cffabad8a Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Fri, 12 Apr 2024 16:55:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=A0=E4=B8=AA=E9=9C=80?= =?UTF-8?q?=E4=B8=8A=E9=93=BE=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/webapi.js | 15 +++++++++++++ src/views/home/boxBtm.vue | 35 ++++++++++++++++++++++++++++++- src/views/home/gameView.vue | 40 +++++++++++++++++++++++++++++++++-- src/views/home/index.vue | 42 ++++++++++++++++++++++++++++++++++++- 4 files changed, 128 insertions(+), 4 deletions(-) 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 @@