版本更新

This commit is contained in:
woohoo 2022-06-25 16:01:12 +08:00
parent 4a6a2b86c7
commit a2a54d9043
4 changed files with 11 additions and 7 deletions

View File

@ -3,6 +3,11 @@
# change # change
## 0.3.38
2022年06月25日
### 修改
- 错误修复
## 0.3.37 ## 0.3.37
2022年06月25日 2022年06月25日
### 添加 ### 添加

View File

@ -1,7 +1,7 @@
let fs = require('fs'); let fs = require('fs');
let date = new Date(); let date = new Date();
let version = '0.3.37'; let version = '0.3.38';
let head = `// ==UserScript== let head = `// ==UserScript==
// @lastmodified ${date.getFullYear()}${('0' + (date.getMonth() + 1)).slice(-2)}${('0' + date.getDate()).slice(-2)}${('0' + date.getHours()).slice(-2)}${('0' + date.getMinutes()).slice(-2)} // @lastmodified ${date.getFullYear()}${('0' + (date.getMonth() + 1)).slice(-2)}${('0' + date.getDate()).slice(-2)}${('0' + date.getHours()).slice(-2)}${('0' + date.getMinutes()).slice(-2)}
// @name 芜湖助手 // @name 芜湖助手

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,6 @@
if (window.WHTRANS) return; if (window.WHTRANS) return;
window.WHTRANS = true; window.WHTRANS = true;
const version = '$$WUHU_DEV_VERSION$$'; const version = '$$WUHU_DEV_VERSION$$';
if (!getUserState()['isLoggedIn']) return;
const isIframe = self !== top; const isIframe = self !== top;
const $ = window['jQuery']; const $ = window['jQuery'];
// PDA // PDA
@ -9868,8 +9867,8 @@ z-index:100001;
function getUserState() { function getUserState() {
let obj = {}; let obj = {};
let hdd = sessionStorage['headerData']; let hdd = sessionStorage['headerData'];
if (!hdd) return;
if (hdd) obj = JSON.parse(hdd)['user']['state']; if (hdd) obj = JSON.parse(hdd)['user']['state'];
console.info({obj})
return obj; return obj;
} }