update:新版本websocket

This commit is contained in:
2026-07-10 13:57:09 +08:00
parent 58a7bb2017
commit b5373bee31
11 changed files with 216 additions and 31 deletions
+4 -4
View File
@@ -8,8 +8,8 @@ try {
switch (envVersion) {
case "develop": // 开发版
BASE_URL = "http://192.168.1.2:8000/api/shoot";
// BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
// BASE_URL = "http://192.168.1.2:8000/api/shoot";
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
break;
case "trial": // 体验版
BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot";
@@ -277,8 +277,8 @@ export const startPractiseAPI = (id) => {
return request("POST", "/user/practice/begin", { id });
};
export const endPractiseAPI = () => {
return request("POST", "/user/practice/stop");
export const endPractiseAPI = (id) => {
return request("POST", "/user/practice/stop", { id });
};
export const getPractiseAPI = async (id) => {