修改api地址
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const BASE_URL = "http://120.79.241.5:8000/api/shoot";
|
||||
const BASE_URL = "https://api.shelingxingqiu.com/api/shoot";
|
||||
|
||||
function request(method, url, data = {}) {
|
||||
const token = uni.getStorageSync("token");
|
||||
@@ -207,11 +207,6 @@ export const getBattleListAPI = async (page, battleType) => {
|
||||
.sort((a, b) => b.totalScore - a.totalScore),
|
||||
});
|
||||
});
|
||||
console.log(1111, result);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getBattleDetailAPI = (id) => {
|
||||
return request("POST", "/user/battle/detail", {
|
||||
id,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user