| | |
| | | top.location.href = "login.html?license=invalid"; |
| | | } |
| | | |
| | | function clearLicensePromptState() { |
| | | sessionStorage.removeItem("licensePanelAutoOpen"); |
| | | sessionStorage.removeItem("licenseInvalidReason"); |
| | | } |
| | | |
| | | $(function () { |
| | | if ("" === localStorage.getItem('token')) { |
| | | top.location.href = baseUrl + "/login"; |
| | |
| | | redirectToLicensePage('系统当前未检测到可用许可证,请重新导入新的许可证。'); |
| | | return; |
| | | } |
| | | clearLicensePromptState(); |
| | | if (days <= 30) { |
| | | $("#licenseShow").show() |
| | | $("#licenseDays").html(days) |
| | | } else { |
| | | $("#licenseShow").hide() |
| | | } |
| | | }else { |
| | | redirectToLicensePage(res.msg || '许可证校验失败,请重新导入新的许可证。'); |