| | |
| | | interface: window.GLOB.baseurl + 'webapi/dostars', |
| | | method: 'POST', |
| | | params: [], |
| | | raw: "{\n \"func\":\"******\",\n \"LoginUID\":\"" + (sessionStorage.getItem('LoginUID') || "******") + "\",\n \"UserID\":\"" + (sessionStorage.getItem('UserID') || "******") + "\",\n \"nonc\":\"" + Utils.getguid() + "\",\n \"t\":" + parseInt(new Date().getTime() / 1000) + "\n}", |
| | | raw: "{\n \"func\":\"******\",\n \"LoginUID\":\"@loginuid@\",\n \"UserID\":\"@userid@\",\n \"nonc\":\"" + Utils.getguid() + "\",\n \"t\":" + parseInt(new Date().getTime() / 1000) + "\n}", |
| | | id: 'dologon' |
| | | } |
| | | MKEmitter.emit('useInterface', m) |
| | |
| | | } else if (config.active === 'raw') { |
| | | if (config.raw) { |
| | | try { |
| | | raws = JSON.parse(config.raw) |
| | | raws = config.raw.replace(/@userid@/ig, sessionStorage.getItem('UserID') || '').replace(/@LoginUID@/ig, sessionStorage.getItem('LoginUID') || '') |
| | | raws = JSON.parse(raws) |
| | | } catch (e) { |
| | | Modal.error({ |
| | | title: '参数格式错误,必须为JSON格式!' |
| | |
| | | <Radio value={'formData'}>formData</Radio> |
| | | <Radio value={'raw'}>raw</Radio> |
| | | </Radio.Group> |
| | | {active === 'raw' ? <span style={{float: 'right', color: '#a5a5a5', fontSize: '13px'}}>注:使用@userid@、@loginuid@时将自动替换。</span> : null} |
| | | </div> |
| | | <div className={'body-content ' + (active === 'none' ? 'show' : '')}> |
| | | <div className="no-body">This request does not have a body</div> |