1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-19 00:10:39 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

localStorage操作统一使用localStorageUtils完成

This commit is contained in:
2022-04-06 13:44:47 +08:00
parent 69b46b5e97
commit 885f2b68e7
12 changed files with 149 additions and 88 deletions

View File

@@ -8,7 +8,7 @@
</div>
<script>
function thirdPartyWithdraw(platform) {
postRequest("/third-party/withdrawThirdPartyBings", { token: localStorage.getItem("token"), platform: platform })
postRequest("/third-party/withdrawThirdPartyBings", { token: localStorageUtils.getToken(), platform: platform })
.then(function (response) {
var axiosData = response.data;
var status = axiosData.status;
@@ -30,8 +30,8 @@
alert("无法连接到服务器,请检查网络连接!");
});
}
if (localStorage.getItem("token") != null) {
getRequest("/third-party/getBindingStatus", { token: localStorage.getItem("token") })
if (localStorageUtils.getLoginStatus() != null) {
getRequest("/third-party/getBindingStatus", { token: localStorageUtils.getToken() })
.then(function (response) {
var axiosData = response.data;
var status = axiosData.status;