| | |
| | | param.timestamp = timestamp |
| | | param.secretkey = Utils.encrypt('', timestamp) |
| | | |
| | | if (r.errors) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: r.errors, |
| | | duration: 5 |
| | | }) |
| | | } |
| | | |
| | | let sumParam = null |
| | | if (r.sumSql) { |
| | | sumParam = { |
| | |
| | | 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 { |