| | |
| | | } |
| | | |
| | | async loginsubmit (param) { |
| | | if (options.systemType === 'local' && !window.GLOB.mainSystemApi) { // 业务系统必须设置单点地址 |
| | | if (options.sysType === 'local' && !window.GLOB.mainSystemApi) { // 业务系统必须设置单点地址 |
| | | Modal.warning({ |
| | | title: '未设置单点服务器地址,请联系管理员!' |
| | | }) |
| | |
| | | } else { |
| | | this.props.history.replace('/main') |
| | | } |
| | | } else if (res.ErrCode === 'Need_Get_Appkey' && options.systemType === 'SSO') { |
| | | } else if (res.ErrCode === 'Need_Get_Appkey' && options.sysType === 'SSO') { |
| | | message.warning('应用尚未创建,请向云端同步应用!') |
| | | |
| | | this.setState({ |
| | |
| | | let timeStamp = new Date().getTime() |
| | | let _appId = window.GLOB.appId |
| | | |
| | | if (options.systemType === 'cloud') { // 云端使用系统配置appid |
| | | _appId = options.AppId |
| | | if (options.sysType === 'cloud') { // 云端使用系统配置appid |
| | | _appId = options.caId |
| | | } |
| | | |
| | | let str = md5('MK19' + _appId + timeStamp) |
| | |
| | | func: 's_get_app_from_cloud', |
| | | UserName: '', |
| | | Password: '', |
| | | systemType: options.systemType, |
| | | systemType: options.sysType, |
| | | Type: 'X', |
| | | debug: 'Y' |
| | | } |