From 01a88094eaa183714ed7490ca7b85fee1e7bb064 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 20 五月 2023 23:03:41 +0800
Subject: [PATCH] 2023-05-20

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 457964c..8a351f8 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -868,7 +868,11 @@
           if (/'/.test(val)) {
             val = val.replace(/'/ig, '"')
           }
-          _initFormfields.push(`@${_key}='${val}'`)
+          if (form.isconst) {
+            _initFormfields.push(`@${_key}=N'${val}'`)
+          } else {
+            _initFormfields.push(`@${_key}='${val}'`)
+          }
         }
       }
       
@@ -2125,7 +2129,7 @@
     param.secretkey = Utils.encrypt(param.LText, param.timestamp)
 
     Api.genericInterface(param).then(res => {
-      // res.send_data = [{openid: 'o2E7gvoSFvQRG7I8_gZxf4y3ONkQ', send_id: '245dd33344', first: '鎮ㄧ殑缂磋垂淇℃伅濡備笅', p1: '010000000001', p2: '2022骞�07鏈�03鏃�', p3: '渚涙殩缂磋垂', p4: '20鍏�', p5: '鎴愬姛', remark: '鎰熻阿鎮ㄧ殑浣跨敤锛�'}]
+      res.send_data = [{openid: 'o2E7gvoSFvQRG7I8_gZxf4y3ONkQ', send_id: Utils.getuuid(), first: '鎮ㄧ殑缂磋垂淇℃伅濡備笅', p1: '010000000001', p2: '2022骞�07鏈�03鏃�', p3: '渚涙殩缂磋垂', p4: '20鍏�', p5: '鎴愬姛', remark: '鎰熻阿鎮ㄧ殑浣跨敤锛�'}]
       if (!res.status) {
         notification.warning({
           top: 92,
@@ -2162,7 +2166,7 @@
       }
       
       verify.wxNoteKeys.forEach(item => {
-        _param.data[item.key] = {value: '', color: '#000000'}
+        _param.data[item.key] = {value: ''}
       })
 
       let params = sends.map(item => {
@@ -2608,7 +2612,8 @@
         fieldlen: item.fieldlength || 50,
         writein: item.writein !== 'false',
         type: item.type,
-        value: item.initval
+        value: item.initval,
+        isconst: item.constant === 'true'
       }
 
       let key = item.field.toLowerCase()

--
Gitblit v1.8.0