From d384d922b294a210f9066a9ce2de0aa6c2898945 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 05 三月 2025 15:19:23 +0800
Subject: [PATCH] 2025-03-05

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |   39 +++++++++++++++++++++++++++++++++++++--
 1 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index c20b5df..a85684f 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -428,7 +428,7 @@
     } else if (btn.Ot !== 'notRequired' && data[0] && !data[0].$$uuid) {
       notification.warning({
         top: 92,
-        message: '鏈幏鍙栧埌ID鍊硷紒',
+        message: dict['id_required'] || '鏈幏鍙栧埌ID鍊硷紒',
         duration: 5
       })
       return false
@@ -3131,7 +3131,7 @@
     const { btn } = this.props
 
     if (!btn.verify) return
-    if (btn.verify.noteEnable !== 'true' && btn.verify.wxNote !== 'true' && btn.verify.printEnable !== 'true' && btn.verify.emailEnable !== 'true') return
+    if (btn.verify.noteEnable !== 'true' && btn.verify.wxNote !== 'true' && btn.verify.printEnable !== 'true' && btn.verify.emailEnable !== 'true' && btn.verify.DeepSeekable !== 'true') return
 
     let id = ''
     if (btn.output) {
@@ -3158,6 +3158,9 @@
     }
     if (btn.verify.emailEnable === 'true') {
       this.sendEmail(btn.verify, id)
+    }
+    if (btn.verify.DeepSeekable === 'true') {
+      this.openDeepSeek(id)
     }
     if (btn.verify.wxNote === 'true') {
       if (btn.verify.wxTemplateId === 'mk_category_temp') {
@@ -3639,6 +3642,38 @@
     })
   }
 
+  openDeepSeek = (id) => {
+    let param = {
+      func: 's_get_deepseek_local',
+      upid: id
+    }
+
+    param.LText = Utils.getuuid()
+    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
+    param.secretkey = Utils.encrypt(param.LText, param.timestamp)
+
+    Api.genericInterface(param).then(res => {
+      if (!res.status) {
+        notification.warning({
+          top: 92,
+          message: res.message,
+          duration: 5
+        })
+        return
+      }
+
+      if (res.deepseek_text) {
+        sessionStorage.setItem('deepseek_sql', res.deepseek_text)
+
+        window.open('#/ai')
+
+        setTimeout(() => {
+          sessionStorage.removeItem('deepseek_sql')
+        }, 0)
+      }
+    })
+  }
+
   /**
    * @description 鎿嶄綔澶辫触鍚庡鐞�
    * 1銆佺姸鎬佺爜涓� E銆丯銆丗銆丯M 鏃讹紝鏄剧ず鐩稿簲鎻愮ず淇℃伅

--
Gitblit v1.8.0