| | |
| | | // }) |
| | | // } |
| | | |
| | | if (res.setting.interType === 'system' && res.setting.dataresource && res.setting.execute !== 'false' && sFields) { |
| | | if (res.setting.interType === 'system' && res.setting.dataresource && res.setting.execute !== 'false') { |
| | | res.setting.dataresource = res.setting.dataresource.replace(/\t+|\v+/g, ' ') |
| | | if (sFields) { |
| | | if (new RegExp(`@(${sFields})@`, 'ig').test(res.setting.dataresource)) { |
| | | maxScript = 1000 |
| | | } |
| | | } |
| | | } |
| | | |
| | | res.scripts.forEach(item => { |
| | | if (item.status === 'false') return |
| | | |
| | | item.sql = item.sql.replace(/\t+|\v+/g, ' ') |
| | | |
| | | if (/exec\s/ig.test(item.sql)) { |
| | | useExec = true |
| | | maxScript = 1000 |