update:新版本websocket
This commit is contained in:
+4
-4
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user