From b58d2d0277eecbae9348d633e7dc805771962024 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 18 九月 2023 19:59:14 +0800
Subject: [PATCH] 2023-09-18

---
 src/templates/sharecomponent/settingcomponent/settingform/simplescript/index.jsx |   18 ++++--------------
 1 files changed, 4 insertions(+), 14 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/simplescript/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/simplescript/index.jsx
index 4b274f6..42ee457 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/simplescript/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/simplescript/index.jsx
@@ -299,22 +299,12 @@
       _scripts.push(values)
     }
 
-    let param = {
-      func: 's_debug_sql',
-      exec_type: 'y',
-      LText: SettingUtils.getCustomDebugSql(_scripts, this.props.regoptions)
-    }
-
-    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
-    param.LText = param.LText.replace(/@(BID|ID|LoginUID|SessionUid|UserID|Appkey|time_id)@/ig, `'${param.timestamp}'`)
-    param.LText = param.LText.replace(/\n/g, ' ')
-    
-    param.LText = Utils.formatOptions(param.LText)
-    param.secretkey = Utils.encrypt('', param.timestamp)
+    let sql = SettingUtils.getCustomDebugSql(_scripts, this.props.regoptions)
+    sql = sql.replace(/@(BID|ID|LoginUID|SessionUid|UserID|Appkey|time_id)@/ig, `'1949-10-01 15:00:00'`)
     
     this.setState({loading: true})
-    Api.genericInterface(param).then(result => {
-      if (result.status) {
+    Api.sDebug(sql).then(result => {
+      if (result.status || result.ErrCode === '-2') {
         this.setState({
           loading: false,
           scripts: _scripts,

--
Gitblit v1.8.0