diff --git a/html/apply.html b/html/apply.html
index 8b3b4a5..d5921be 100644
--- a/html/apply.html
+++ b/html/apply.html
@@ -180,7 +180,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 && res.code !== 200) return;
var list = ApiClient.asArray(ApiClient.pickData(res, []));
var $nav = $("#navLotteryItems");
diff --git a/html/c.html b/html/c.html
index 05a91df..3716c8c 100644
--- a/html/c.html
+++ b/html/c.html
@@ -143,6 +143,12 @@
return { Authorization: "Bearer " + token };
}
+ function escapeJsString(value) {
+ return String(value == null ? "" : value)
+ .replace(/\\/g, "\\\\")
+ .replace(/'/g, "\\'");
+ }
+
// Load collection list
function loadCollections() {
const token = localStorage.getItem("token");
@@ -152,10 +158,11 @@
}
ApiClient.get(
- "/api/user/collect/list?page=" +
- currentPage +
- "&pageSize=" +
- pageSize,
+ ApiClient.API.mineFreeCollectList,
+ {
+ pageNum: currentPage,
+ pageSize: pageSize,
+ },
{ headers: authHeaders() },
).then(function (res) {
if (res.code === 0 && res.data) {
@@ -189,6 +196,8 @@
$grid.append(
'
",
@@ -210,15 +219,15 @@
});
}
- function removeCollect(btn, collectId) {
+ function removeCollect(btn, articleId) {
layui.layer.confirm(
"确定要取消收藏吗?",
{ icon: 3, title: "提示" },
function (index) {
layui.layer.close(index);
ApiClient.post(
- "/api/user/collect/delete",
- { id: collectId },
+ ApiClient.API.freeArticleCollect(articleId),
+ {},
{ headers: authHeaders() },
).then(function (res) {
if (res.code === 0) {
diff --git a/html/cai.html b/html/cai.html
index 421b6a6..987de6d 100644
--- a/html/cai.html
+++ b/html/cai.html
@@ -226,7 +226,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -250,7 +250,7 @@
// Load menu data (3-level cascade)
function loadMenuData() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code === 0 && res.data) {
menuData = res.data;
renderLotteryFilter();
@@ -559,7 +559,7 @@
return;
}
currentTypeId = typeId;
- ApiClient.get("/api/web/pay-article/expert-rank", {
+ ApiClient.get(ApiClient.API.payArticleExpertRank, {
menuId: typeId,
issueCount: currentPageSize,
pageNum: currentPage,
@@ -664,7 +664,7 @@
);
return;
}
- ApiClient.get("/api/web/pay-article/expert-rank", {
+ ApiClient.get(ApiClient.API.payArticleExpertRank, {
menuId: typeId,
issueCount: 50,
pageNum: 1,
diff --git a/html/caiinfo.html b/html/caiinfo.html
index d33302a..5d13056 100644
--- a/html/caiinfo.html
+++ b/html/caiinfo.html
@@ -308,10 +308,10 @@
function loadBasicConfig() {
Promise.all([
- ApiClient.get("/api/web/config").catch(function () {
+ ApiClient.get(ApiClient.API.webConfig).catch(function () {
return { data: {} };
}),
- ApiClient.get("/api/web/config/site").catch(function () {
+ ApiClient.get(ApiClient.API.configSite).catch(function () {
return { data: {} };
}),
]).then(function (results) {
@@ -392,8 +392,30 @@
return String((item && (item.expertId || item.createBy || item.accountId)) || createBy || "");
}
+ function getArticleMenuIdFromMenus(item) {
+ const menus = ApiClient.asArray(item && item.menus);
+ const menu =
+ menus.find(function (entry) {
+ return entry && entry.type !== "lottery" && (entry.id || entry.menuId);
+ }) ||
+ menus.find(function (entry) {
+ return entry && (entry.id || entry.menuId);
+ });
+ return menu ? String(menu.id || menu.menuId || "") : "";
+ }
+
function getArticleMenuId(item) {
- return String((item && (item.menuId || item.parentId || item.typeId)) || parentId || "");
+ return String(
+ (item &&
+ (item.menuId ||
+ item.playMenuId ||
+ item.typeMenuId ||
+ item.parentId ||
+ item.typeId ||
+ getArticleMenuIdFromMenus(item))) ||
+ parentId ||
+ "",
+ );
}
function getArticlePrice(item) {
@@ -423,7 +445,7 @@
if (!item) return [];
const expert = item.expertId || item.createBy || createBy;
const lottery = item.code || item.suoxie || code;
- const menu = item.menuId || item.parentId || item.typeId || parentId;
+ const menu = getArticleMenuId(item);
const issue = getArticleIssue(item);
if (!expert || !issue) return [];
const normalized = function (parts) {
diff --git a/html/cjdlt.html b/html/cjdlt.html
index cb9a7aa..b55f512 100644
--- a/html/cjdlt.html
+++ b/html/cjdlt.html
@@ -142,7 +142,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -337,16 +337,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "cjdlt" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "cjdlt" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/duanzuhe.html b/html/duanzuhe.html
index 797982c..c851915 100644
--- a/html/duanzuhe.html
+++ b/html/duanzuhe.html
@@ -300,10 +300,10 @@
function loadBasicConfig() {
Promise.all([
- ApiClient.get("/api/web/config").catch(function () {
+ ApiClient.get(ApiClient.API.webConfig).catch(function () {
return { data: {} };
}),
- ApiClient.get("/api/web/config/site").catch(function () {
+ ApiClient.get(ApiClient.API.configSite).catch(function () {
return { data: {} };
}),
]).then(function (results) {
diff --git a/html/fabumianfeiwenzhang.html b/html/fabumianfeiwenzhang.html
index 9e915f6..fe707eb 100644
--- a/html/fabumianfeiwenzhang.html
+++ b/html/fabumianfeiwenzhang.html
@@ -526,7 +526,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (!isApiSuccess(res)) return;
var list = ApiClient.asArray(ApiClient.pickData(res, []));
var $nav = layui.$("#navLotteryItems");
@@ -573,7 +573,7 @@
}
function loadMenuList() {
- ApiClient.post("/api/web/menu/getFormatList", {})
+ ApiClient.loadMenuCompat()
.then(function (res) {
if (!isApiSuccess(res)) throw new Error(res.msg || "获取彩种失败");
menuList = ApiClient.asArray(ApiClient.pickData(res, [])).filter(
diff --git a/html/fc3d.html b/html/fc3d.html
index b772f99..c567305 100644
--- a/html/fc3d.html
+++ b/html/fc3d.html
@@ -144,7 +144,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -394,16 +394,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "fc3d" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "fc3d" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/fenxiao.html b/html/fenxiao.html
index 97ad549..c0eb87c 100644
--- a/html/fenxiao.html
+++ b/html/fenxiao.html
@@ -252,7 +252,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(
+ ApiClient.loadMenuCompat().then(
function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
@@ -288,7 +288,7 @@
}
function getAffInfo() {
- return ApiClient.post("/api/web/rebate/getAffInfo", {}, { headers: CommonUtil.authHeaders() });
+ return ApiClient.get(ApiClient.API.referralShareInfo, null, { headers: CommonUtil.authHeaders() });
}
function copyText(text) {
@@ -442,13 +442,7 @@
},
function (index) {
layer.close(index);
- ApiClient.post(
- "/api/web/user/applyDistribution",
- {},
- {
- headers: CommonUtil.authHeaders(),
- },
- )
+ ApiClient.post(ApiClient.API.referralBind, {}, { headers: CommonUtil.authHeaders() })
.then(function (res) {
if (res.code === 0) {
layer.msg(
@@ -482,13 +476,7 @@
},
function (index) {
layer.close(index);
- ApiClient.post(
- "/api/web/user/applyExpert",
- {},
- {
- headers: CommonUtil.authHeaders(),
- },
- )
+ ApiClient.post(ApiClient.API.expertApply, {}, { headers: CommonUtil.authHeaders() })
.then(function (res) {
if (res.code === 0) {
layer.msg(
diff --git a/html/fufei.html b/html/fufei.html
index f17ff38..5068733 100644
--- a/html/fufei.html
+++ b/html/fufei.html
@@ -243,7 +243,7 @@
}
function renderTopNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (!isApiSuccess(res)) return;
var list = ApiClient.asArray(ApiClient.pickData(res, []));
var $nav = layui.$("#navLotteryItems");
diff --git a/html/gonggao.html b/html/gonggao.html
index 4e08490..87866a5 100644
--- a/html/gonggao.html
+++ b/html/gonggao.html
@@ -139,7 +139,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
diff --git a/html/gonggaolist.html b/html/gonggaolist.html
index ccba7fd..152d48c 100644
--- a/html/gonggaolist.html
+++ b/html/gonggaolist.html
@@ -135,7 +135,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
diff --git a/html/index.html b/html/index.html
index 24573f9..7a7c6d4 100644
--- a/html/index.html
+++ b/html/index.html
@@ -766,7 +766,7 @@
$("#historyTableBody").html(
'| 正在加载历史开奖数据... |
',
);
- ApiClient.post("/api/web/lotteryResult/getList", { suoxie: code })
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: code })
.then(function (res) {
if (res.code === 0 && res.data) {
historyCache[code] = res.data.records || res.data || [];
@@ -834,10 +834,7 @@
renderAdGroups(data.adList || []);
renderRecommendGrid(data.linkList || []);
renderLinksGrid(data.linkList || []);
- ApiClient.post("/api/web/QRCode").then(function (res) {
- if (res.code === 0 && res.data)
- CommonUtil.generateQRCode(res.data, "downloadQrImg");
- });
+ CommonUtil.generateQRCode(location.origin + "/html/appdown.html", "downloadQrImg");
}
$(function () {
bindStaticEvents();
diff --git a/html/kl8.html b/html/kl8.html
index 70b1024..d93b20d 100644
--- a/html/kl8.html
+++ b/html/kl8.html
@@ -142,7 +142,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -303,16 +303,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "kl8" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "kl8" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/mianfeishoucang.html b/html/mianfeishoucang.html
index f12e9df..020090f 100644
--- a/html/mianfeishoucang.html
+++ b/html/mianfeishoucang.html
@@ -242,7 +242,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (!ApiClient.isSuccess(res) || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
diff --git a/html/pl3.html b/html/pl3.html
index c1db466..475bb2f 100644
--- a/html/pl3.html
+++ b/html/pl3.html
@@ -144,7 +144,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -382,16 +382,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "pl3" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "pl3" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/pl5.html b/html/pl5.html
index 6de2429..05f657a 100644
--- a/html/pl5.html
+++ b/html/pl5.html
@@ -145,7 +145,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -311,16 +311,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "pl5" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "pl5" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/qlc.html b/html/qlc.html
index 385b36e..125b58d 100644
--- a/html/qlc.html
+++ b/html/qlc.html
@@ -144,7 +144,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -333,16 +333,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "qlc" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "qlc" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/qxc.html b/html/qxc.html
index f097a53..3374b89 100644
--- a/html/qxc.html
+++ b/html/qxc.html
@@ -147,7 +147,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -321,16 +321,12 @@
}
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "qxc" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "qxc" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/repwd.html b/html/repwd.html
index b7bff19..c1ddbaf 100644
--- a/html/repwd.html
+++ b/html/repwd.html
@@ -466,7 +466,7 @@
AuthPageUtil.startSmsCountdown("#sendSmsBtn", waitSeconds);
throw new Error("__SMS_WAIT__");
}
- return AuthPageUtil.sendForgotPasswordSmsCode(
+ return AuthPageUtil.sendSmsCode(
Object.assign(
{ phoneNumber: $("#phone").val().trim() },
verifyParams,
diff --git a/html/shazuhe.html b/html/shazuhe.html
index db8760b..c03366c 100644
--- a/html/shazuhe.html
+++ b/html/shazuhe.html
@@ -335,10 +335,10 @@
function loadBasicConfig() {
Promise.all([
- ApiClient.get("/api/web/config").catch(function () {
+ ApiClient.get(ApiClient.API.webConfig).catch(function () {
return { data: {} };
}),
- ApiClient.get("/api/web/config/site").catch(function () {
+ ApiClient.get(ApiClient.API.configSite).catch(function () {
return { data: {} };
}),
]).then(function (results) {
diff --git a/html/ssq.html b/html/ssq.html
index 768c446..a46f3a5 100644
--- a/html/ssq.html
+++ b/html/ssq.html
@@ -142,7 +142,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
@@ -396,16 +396,12 @@
// Load data from API
function loadData() {
- ApiClient.post(
- "/api/web/lotteryResult/getList",
- { suoxie: "ssq" },
- function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "ssq" }).then(function (res) {
if (res && res.data) {
allData = res.data;
renderData(currentCount);
}
- },
- );
+ });
}
// Period count buttons
diff --git a/html/tuiguang.html b/html/tuiguang.html
index 7090732..9cc827f 100644
--- a/html/tuiguang.html
+++ b/html/tuiguang.html
@@ -359,7 +359,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
$nav.find(".topbar__nav-link").not(":first").remove();
diff --git a/html/usercenter.html b/html/usercenter.html
index 982e2da..619a754 100644
--- a/html/usercenter.html
+++ b/html/usercenter.html
@@ -815,11 +815,7 @@
// ====== Logout ======
function handleLogout() {
- ApiClient.post(
- "/api/web/user/logout",
- {},
- { headers: CommonUtil.authHeaders() },
- )
+ ApiClient.post(ApiClient.API.authLogout, null, { headers: CommonUtil.authHeaders() })
.then(function (res) {
localStorage.removeItem("token");
window.location.href = "login.html";
@@ -833,10 +829,9 @@
// ====== Sign-in Records ======
function loadSignInRecords(pageNum) {
signInPageNum = pageNum || 1;
- ApiClient.post(
- "/api/web/user/signIn/getPageList",
+ ApiClient.get(
+ ApiClient.API.mineSignInList,
{
- delFlag: "0",
pageNum: signInPageNum,
pageSize: 5,
pointsType: 1,
@@ -845,7 +840,7 @@
).then(function (res) {
if (res.code === 0 && res.data) {
renderSignInTable(res.data.records || []);
- renderSignInPager(res.data.totalRow);
+ renderSignInPager(res.data.totalRow || res.data.total || 0);
}
});
}
@@ -898,11 +893,7 @@
// ====== Load Menu for Filter ======
function loadMenuList() {
- ApiClient.post(
- "/api/web/menu/getFormatList",
- {},
- { headers: CommonUtil.authHeaders() },
- ).then(function (res) {
+ ApiClient.loadMenuCompat().then(function (res) {
if (res.code === 0 && res.data) {
menuListData = res.data;
// 免费文章 - 只需彩种
@@ -953,7 +944,7 @@
articlePageNum = pageNum || 1;
var menuId = $("#filterLottery").val() || "";
ApiClient.get(
- "/api/web/mine/free-article/list",
+ ApiClient.API.mineFreeArticleList,
{
menuId: menuId,
pageNum: articlePageNum,
@@ -1090,7 +1081,7 @@
$("#paidFilterLottery").val() ||
"";
ApiClient.get(
- "/api/web/mine/pay-article/list",
+ ApiClient.API.minePayArticleList,
{
menuId: menuId,
pageNum: paidArticlePageNum,
diff --git a/html/wodefenxiao.html b/html/wodefenxiao.html
index d8f8c9b..7ba657a 100644
--- a/html/wodefenxiao.html
+++ b/html/wodefenxiao.html
@@ -169,7 +169,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(
+ ApiClient.loadMenuCompat().then(
function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
@@ -205,8 +205,8 @@
function loadDistList(pageNum) {
currentPage = pageNum;
- ApiClient.post(
- "/api/web/distribution/getPageList",
+ ApiClient.get(
+ ApiClient.API.referralInviteList,
{
pageNum: pageNum,
pageSize: pageSize,
diff --git a/html/yinsixieyi.html b/html/yinsixieyi.html
index 174885a..adfece9 100644
--- a/html/yinsixieyi.html
+++ b/html/yinsixieyi.html
@@ -228,7 +228,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(
+ ApiClient.loadMenuCompat().then(
function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
diff --git a/html/yonghuxieyi.html b/html/yonghuxieyi.html
index 1839d0c..ae35499 100644
--- a/html/yonghuxieyi.html
+++ b/html/yonghuxieyi.html
@@ -272,7 +272,7 @@
}
function renderNav() {
- ApiClient.post("/api/web/menu/getFormatList", {}).then(
+ ApiClient.loadMenuCompat().then(
function (res) {
if (res.code !== 0 || !res.data) return;
var $nav = $("#navLotteryItems");
diff --git a/public/js/page-common.js b/public/js/page-common.js
index 1e75e7f..2a078de 100644
--- a/public/js/page-common.js
+++ b/public/js/page-common.js
@@ -29,7 +29,7 @@
CommonUtil.getCurrentUserDetail(
function (data) {
- $("#userName").text(data.nickName || data.nickname || data.username || "鐢ㄦ埛");
+ $("#userName").text(data.nickName || data.nickname || data.username || "用户");
$("#userAvatar").attr("src", data.avatar || "../public/img/userimg.png");
$("#userLevel").text(CommonUtil.getUserLevelText(data));
},
diff --git a/utils/ApiClient.js b/utils/ApiClient.js
index 29070c0..0598396 100644
--- a/utils/ApiClient.js
+++ b/utils/ApiClient.js
@@ -26,7 +26,7 @@ const ApiClient = {
noticeList: '/api/web/notice/list',
noticeDetail: (id) => `/api/web/notice/${encodeURIComponent(id || '')}`,
friendLinks: '/api/web/link/friend',
- otherRecommendLinks: '/api/web/link/other',
+ otherRecommendLinks: '/api/web/link/other-recommend',
latestLotteryResult: '/api/web/lottery/result/latest',
lotteryResultList: '/api/web/lottery/result/list',
webConfigList: '/api/web/config/list',
@@ -108,8 +108,8 @@ const ApiClient = {
fc3dSchemeList: '/api/web/fc3d/scheme/list',
fc3dSchemeDetail: (id) => `/api/web/fc3d/scheme/${encodeURIComponent(id)}`,
walletPurchaseFc3dScheme: '/api/web/wallet/purchase/fc3d-scheme',
- lotteryTrendTools: '/api/web/lottery/trend/tools',
- lotteryTrend: '/api/web/lottery/trend',
+ lotteryTrendTools: '/api/web/lottery/result/trend/tools',
+ lotteryTrend: '/api/web/lottery/result/trend',
},
get baseUrl() {
diff --git a/utils/CommonUtil.js b/utils/CommonUtil.js
index 2bbcd63..e69585c 100644
--- a/utils/CommonUtil.js
+++ b/utils/CommonUtil.js
@@ -1020,7 +1020,7 @@ const CommonUtil = {
if (!window.__cxzCaiinfoMenuLoading && !window.__cxzCaiinfoMenuMeta && typeof ApiClient !== 'undefined') {
window.__cxzCaiinfoMenuLoading = true;
- ApiClient.post('/api/web/menu/getFormatList', {})
+ ApiClient.loadMenuCompat()
.then((res) => {
window.__cxzCaiinfoMenuMeta = findMenuMeta(res.data || []);
if (typeof window.loadArticles === 'function') window.loadArticles();
@@ -1439,7 +1439,7 @@ const CommonUtil = {
},
loadLinks() {
- ApiClient.post('/api/web/link/getList', {}).then((res) => {
+ ApiClient.loadLinksCompat().then((res) => {
const list = res.data || [];
this.renderLinks(
list.filter((item) => item.type === 1),