king
2024-08-03 c18f79e01a2705d34d5ac2923a26913dba07ea14
src/tabviews/zshare/actionList/funcbutton/index.jsx
@@ -215,21 +215,6 @@
      }
    }
    let appId = window.GLOB.WXAppID || window.GLOB.WXminiAppID || ''
    if (btn.wxApp && window.GLOB.WXApps && window.GLOB.WXApps.findIndex(item => item.appId === btn.wxApp) > -1) {
      appId = btn.wxApp
    }
    if (!appId) {
      notification.warning({
        top: 10,
        message: '未获取到应用ID!',
        duration: 5
      })
      return
    }
    this.setState({loading: true})
    if (param) {
@@ -240,7 +225,7 @@
            id = res.mk_b_id || res[btn.output] || orderId
          }
          Api.setRefund({out_biz_no: id, app_id: appId}).then(res => {
          Api.setRefund({out_biz_no: id}).then(res => {
            if (!res.status) {
              this.execError({ErrCode: 'E', message: res.message || window.GLOB.dict['exc_fail'] || '执行失败!', ...res})
            } else {
@@ -252,7 +237,7 @@
        }
      })
    } else {
      Api.setRefund({out_biz_no: orderId, app_id: appId}).then(res => {
      Api.setRefund({out_biz_no: orderId}).then(res => {
        if (!res.status) {
          this.execError({ErrCode: 'E', message: res.message || window.GLOB.dict['exc_fail'] || '执行失败!', ...res})
        } else {
@@ -363,8 +348,8 @@
    }
    if (window.GLOB.debugger === true) {
      console.info('%c' + btn.logLabel, 'color: blue')
      console.info(_sql)
      window.mkInfo('%c' + btn.logLabel, 'color: blue')
      window.mkInfo(_sql)
    }
    return _sql