| | |
| | | let timeStamp = new Date().getTime() |
| | | let _appId = window.GLOB.appId |
| | | |
| | | if (options.systemType === 'Cloud') { // 云端使用系统配置appid |
| | | if (options.systemType === 'cloud') { // 云端使用系统配置appid |
| | | _appId = options.AppId |
| | | } |
| | | |
| | | let str = md5('MK19' + _appId + timeStamp) |
| | | Api.systemauth(_appId, timeStamp).then(res => { |
| | | if (res.status && res.EPC === str) { |
| | | if (res.status) { |
| | | if (res.EPC === str) { |
| | | let box = [] |
| | | for (let i = 0; i < 15; i++) { |
| | | let s = 'mksoft' + moment().add(i, 'days').format('YYYYMMDD') |
| | |
| | | auth: false |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | |
| | | let authCode = localStorage.getItem('AuthCode') |