From 11b6387d74467f81e33eba8f882bff610f240115 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 18 九月 2023 20:01:09 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/templates/sharecomponent/treesettingcomponent/settingform/index.jsx |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/templates/sharecomponent/treesettingcomponent/settingform/index.jsx b/src/templates/sharecomponent/treesettingcomponent/settingform/index.jsx
index 31c37e5..46b7486 100644
--- a/src/templates/sharecomponent/treesettingcomponent/settingform/index.jsx
+++ b/src/templates/sharecomponent/treesettingcomponent/settingform/index.jsx
@@ -2,10 +2,8 @@
 import PropTypes from 'prop-types'
 import { fromJS } from 'immutable'
 import { Form, notification, Modal, Spin, Tabs } from 'antd'
-import moment from 'moment'
 
 import Api from '@/api'
-import Utils from '@/utils/utils.js'
 import SettingUtils from './utils.jsx'
 import DataSource from './datasource'
 import asyncComponent from '@/utils/asyncComponent'
@@ -134,19 +132,10 @@
     } else if (type === 'scripts' && _scripts.length === 0) {
       _resolve()
     } else { // type 涓� submit 銆� verify 锛屼互鍙婂叾浠栭渶瑕侀獙璇佺殑鍦烘櫙
-      let timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
-      let param = {
-        func: 's_debug_sql',
-        exec_type: 'y',
-        LText: SettingUtils.getDebugSql(setting, _scripts, timestamp)
-      }
-      param.LText = param.LText.replace(/\n/g, ' ')
-      param.LText = Utils.formatOptions(param.LText)
-      param.timestamp = timestamp
-      param.secretkey = Utils.encrypt('', timestamp)
+      let sql = SettingUtils.getDebugSql(setting, _scripts)
       
-      Api.genericInterface(param).then(result => {
-        if (result.status) {
+      Api.sDebug(sql).then(result => {
+        if (result.status || result.ErrCode === '-2') {
           _resolve()
         } else {
           _reject()

--
Gitblit v1.8.0