king
2022-09-01 cb9148bdc1f6cb592771236424e61cebc61d4829
2022-09-01
3个文件已修改
47 ■■■■■ 已修改文件
src/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemfunc/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/index.js
@@ -118,6 +118,10 @@
    GLOB.debugger = options.sysType === 'local' && GLOB.systemType !== 'production'
    if (/#\/hs$/.test(window.location.href)) { // hs下不打印脚本
      GLOB.debugger = false
    }
    if (options.sysType !== 'cloud') {
      if (config.appkey === options.cakey) {
        document.getElementById('root').innerHTML = '<div style="text-align: center; font-size: 30px; margin-top: 40vh;">不可使用云端appkey,请联系管理员!</div>'
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1219,8 +1219,24 @@
    const { btn } = this.props
    let param = null
    let callback = result.mk_ex_invoke
    if (btn.callbackType === 'script' || btn.callbackType === 'default') {
    delete result.mk_ex_invoke
    if (callback === 'false' || callback === false) {
      if (result.status) {
        if (params.length === 0) {
          this.execSuccess(result)
          _resolve()
        } else {
          this.customLoopRequest(params, _resolve)
        }
      } else {
        this.execError(result)
        _resolve()
      }
      return
    } else if (btn.callbackType === 'script' || btn.callbackType === 'default') {
      param = this.getCallBackSql(result, record)
    } else if (btn.callbackType === 'func') {
      param = {
@@ -1635,8 +1651,24 @@
      result.mk_api_key = record.mk_api_key
    }
    // special 版本升级回调处理
    if (window.GLOB.mkHS && btn.outerFunc === 's_get_sVersionDetail_Ltext' && btn.callbackFunc) {
    let callback = result.mk_ex_invoke
    delete result.mk_ex_invoke
    if (callback === 'false' || callback === false) {
      if (result.status) {
        if (params.length === 0) {
          this.execSuccess(result)
          _resolve()
        } else {
          this.outerLoopRequest(params, _resolve)
        }
      } else {
        this.execError(result)
        _resolve()
      }
      return
    } else if (window.GLOB.mkHS && btn.outerFunc === 's_get_sVersionDetail_Ltext' && btn.callbackFunc) { // special 版本升级回调处理
      if (result.status) {
        this.verupRequest(params, result, outParam, _resolve)
      } else {
src/views/systemfunc/index.jsx
@@ -16,6 +16,11 @@
  UNSAFE_componentWillMount() {
    sessionStorage.setItem('isEditState', 'true')
    window.GLOB.mkHS = true
    Object.defineProperty(window, 'debugger', {
      writable: false,
      value: false
    })
  }
  
  render () {