| | |
| | | } |
| | | } |
| | | |
| | | 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) { |
| | |
| | | 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 { |
| | |
| | | } |
| | | }) |
| | | } 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 { |
| | |
| | | } |
| | | |
| | | 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 |