| | |
| | | func: 's_get_timers_role', |
| | | LText: `select '${window.GLOB.appkey || ''}','${uuid}'`, // 只用做密钥验证,已无效 |
| | | timer_type: interval, |
| | | component_id: uuid, |
| | | exec_type: 'x' |
| | | component_id: uuid |
| | | } |
| | | |
| | | if (window.GLOB.execType === 'x') { |
| | | _param.exec_type = 'x' |
| | | } |
| | | |
| | | _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | _param.LText = Utils.formatOptions(_param.LText, 'x') |
| | | _param.secretkey = Utils.encrypt('', _param.timestamp) |
| | | _param.LText = Utils.formatOptions(_param.LText, _param.exec_type) |
| | | _param.secretkey = Utils.encrypt(window.GLOB.execType === 'x' ? '' : _param.LText, _param.timestamp) |
| | | |
| | | Api.getSystemConfig(_param).then(result => { |
| | | if (!result.status) { |
| | |
| | | |
| | | let encrypted = CryptoJS.AES.encrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }) |
| | | value = encrypted.toString() |
| | | |
| | | // let wordArray = CryptoJS.enc.Base64.parse(value) |
| | | // let decryptedWordArray = CryptoJS.AES.decrypt({ ciphertext: wordArray }, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 }) |
| | | // let decryptedText = CryptoJS.enc.Utf8.stringify(decryptedWordArray) |
| | | } else { |
| | | // 替换关键字 |
| | | formatKeys.forEach(item => { |