From 0bbaa727cdfc65622e33e91c4bf694c83f184535 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 04 二月 2024 23:12:14 +0800
Subject: [PATCH] 2024-02-04

---
 src/views/design/header/editfirstmenu/index.jsx |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/views/design/header/editfirstmenu/index.jsx b/src/views/design/header/editfirstmenu/index.jsx
index 45a5b8d..4d1b286 100644
--- a/src/views/design/header/editfirstmenu/index.jsx
+++ b/src/views/design/header/editfirstmenu/index.jsx
@@ -60,7 +60,7 @@
       this.setState({
         loading: true
       })
-      Api.getSystemConfig(param).then(res => {
+      Api.getCloudConfig(param).then(res => {
         if (res.status) {
           this.setState({
             loading: false,
@@ -101,7 +101,7 @@
           func: 'sPC_MainMenu_Del',
           MenuID: item.MenuID
         }
-        return Api.getSystemConfig(param).then(res => {
+        return Api.getCloudConfig(param).then(res => {
           if (res.status) {
             _this.props.reload()
           } else {
@@ -125,21 +125,22 @@
     if (type === 'confirm' && _menuchange) {
       let param  = {
         func: 'sPC_Menu_SortUpt',
+        exec_type: 'x',
         LText: this.state.menulist.map((item, index) => {
           return 'select \'' + item.MenuID + '\' as Menuid,' + (index + 1) * 10 + ' as sort'
         })
       }
 
-      param.LText = param.LText.join(' union ') // sql鎷兼帴
-      param.LText = Utils.formatOptions(param.LText) // 鍏抽敭瀛楃鏇挎崲锛宐ase64鍔犲瘑
-      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') // 鏃堕棿鎴�
-      param.secretkey = Utils.encrypt(param.LText, param.timestamp) // md5瀵嗛挜
+      param.LText = param.LText.join(' union ')
+      param.LText = Utils.formatOptions(param.LText, 'x')
+      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
+      param.secretkey = Utils.encrypt('', param.timestamp)
 
       confirm({
         title: '纭璋冩暣鑿滃崟椤哄簭鍚楋紵',
         content: '',
         onOk() {
-          return Api.getSystemConfig(param).then(res => {
+          return Api.getCloudConfig(param).then(res => {
             if (res.status) {
               that.setState({ change: false })
               that.props.reload()

--
Gitblit v1.8.0