From 113ff1aa0d62549730f1413fe5ffcadcf3a14f11 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 23 八月 2022 11:37:24 +0800
Subject: [PATCH] 2022-08-23

---
 src/templates/zshare/createfunc/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/templates/zshare/createfunc/index.jsx b/src/templates/zshare/createfunc/index.jsx
index 92e31e1..b37c619 100644
--- a/src/templates/zshare/createfunc/index.jsx
+++ b/src/templates/zshare/createfunc/index.jsx
@@ -59,7 +59,7 @@
       _param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
       _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp)
       
-      return Api.getLocalConfig(_param)
+      return Api.genericInterface(_param)
     }).then(res => {
       if (!res) return res
 
@@ -143,7 +143,7 @@
       _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp)
       _param.open_key = Utils.encryptOpenKey(_param.secretkey, _param.timestamp)
 
-      return Api.getLocalConfig(_param)
+      return Api.genericInterface(_param)
     }).then(res => {
       if (!res || res === 'create') return res
       
@@ -171,7 +171,7 @@
       _param.secretkey = Utils.encrypt(_param.LText, _param.timestamp)
       _param.open_key = Utils.encryptOpenKey(_param.secretkey, _param.timestamp)
 
-      return Api.getLocalConfig(_param)
+      return Api.genericInterface(_param)
     }).then(res => {
       this.setState({
         loading: false

--
Gitblit v1.8.0