king
2023-06-29 082525152ac56e4f3cda2a9ca3bcd1f62ba073ce
2023-06-29
2个文件已修改
6 ■■■■■ 已修改文件
src/views/interface/history/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/interface/workspace/request/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/interface/history/index.jsx
@@ -211,7 +211,7 @@
      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)
src/views/interface/workspace/request/index.jsx
@@ -95,7 +95,8 @@
    } 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格式!'
@@ -281,6 +282,7 @@
                <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>