| | |
| | | let timestamp = moment().format('YYYY-MM-DD HH:mm:ss') |
| | | let r = SettingUtils.getDebugSql(setting, _scripts, columns, searches, defaultSearch, timestamp) |
| | | |
| | | if (r.error) { |
| | | if (r.errors) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: r.error, |
| | | message: r.errors, |
| | | duration: 5 |
| | | }) |
| | | reject() |
| | | return |
| | | } |
| | | |
| | | let param = { |
| | |
| | | sumParam.secretkey = Utils.encrypt('', sumParam.timestamp) |
| | | } |
| | | |
| | | Api.getLocalConfig(param).then(result => { |
| | | Api.genericInterface(param).then(result => { |
| | | if (result.status) { |
| | | if (sumParam) { |
| | | Api.getLocalConfig(sumParam).then(res => { |
| | | Api.genericInterface(sumParam).then(res => { |
| | | if (res.status) { |
| | | resolve() |
| | | } else { |