king
2020-04-01 56c0d6e2f83d72f622744fea76fdc64b09e30f1d
src/api/index.js
@@ -61,33 +61,17 @@
      // axios.defaults.baseURL = 'http://127.0.0.1:8888'
    }
  }
  /**
   * @description 系统授权
   */
  systemauth (appId, timestamp) {
    return axios({
      url: '/webapi/dostar',
      data: {
        rduri: 'http://minkesoft.com/mksepc/webapi/dostar',
        func: 'sEmpowerCloud_Get_LinkUrl',
        userid: '',
        AppID: appId,
        TimeStamp: timestamp
      }
    })
  }
  
  /**
   * @description 登录系统
   * @description 使用dostar接口,跳过验证
   * @param {Object} param 查询及提交参数
   */
  loginsystem (username, password) {
  dostarInterface (param) {
    param.userid = ''
    return axios({
      url: '/zh-CN/Home/LoginAndRedirect',
      data: {
        Username: username,
        Password: password
      }
      url: '/webapi/dostar',
      data: param
    })
  }
@@ -99,14 +83,16 @@
      // func: 'webapi_login',
      UserName: username,
      Password: password,
      systemType: options.systemType,
      Type: 'X'
    }
    param.Password = Utils.formatOptions(param.Password)
    param.appkey = window.GLOB.appkey || ''
    if (isCloud && options.cloudLoginApi) {
      param.rduri = options.cloudLoginApi
    } else if (window.GLOB.mainSystemApi) {
    } else if (!isCloud && window.GLOB.mainSystemApi) {
      param.rduri = window.GLOB.mainSystemApi.replace(/\/webapi(.*)/, '/webapi/dologon')
    }