From 48a18736c461ad730bd264b0ac7b40b68a0e33a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 28 六月 2020 20:30:20 +0800
Subject: [PATCH] 2020-06-28

---
 src/api/index.js |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 1867953..76b3ce9 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -82,7 +82,7 @@
       // func: 'webapi_login',
       UserName: username,
       Password: password,
-      systemType: options.systemType,
+      systemType: options.sysType,
       Type: 'X'
     }
 
@@ -91,8 +91,8 @@
 
     if (isCloud) {
       param.debug = 'Y'
-      if (options.cloudLoginApi) {
-        param.rduri = options.cloudLoginApi
+      if (options.cloudServiceApi) {
+        param.rduri = options.cloudServiceApi.replace(/\/webapi(.*)/, '/webapi/dologon')
       }
     } else if (!isCloud && window.GLOB.mainSystemApi) {
       param.rduri = window.GLOB.mainSystemApi.replace(/\/webapi(.*)/, '/webapi/dologon')
@@ -143,7 +143,7 @@
     param.t = new Date().getTime()
 
     return axios({
-      url: '/webapi/dostars',
+      url: `/webapi/dostars${param.func ? '/' + param.func : ''}`,
       data: param
     })
   }
@@ -183,7 +183,7 @@
     param.t = new Date().getTime()
 
     return axios({
-      url: '/webapi/dostars',
+      url: `/webapi/dostars${param.func ? '/' + param.func : ''}`,
       data: param
     })
   }
@@ -214,7 +214,7 @@
     param.t = new Date().getTime()
 
     return axios({
-      url: '/webapi/dostars',
+      url: `/webapi/dostars${param.func ? '/' + param.func : ''}`,
       data: param
     })
   }
@@ -268,7 +268,7 @@
 
       return new Promise(resolve => {
         axios({
-          url: '/webapi/dostars',
+          url: `/webapi/dostars${param.func ? '/' + param.func : ''}`,
           data: param
         }).then(res => {
           if (res.status) {
@@ -312,7 +312,7 @@
     param.t = new Date().getTime()
 
     return axios({
-      url: '/webapi/dostars',
+      url: `/webapi/dostars${param.func ? '/' + param.func : ''}`,
       data: param
     })
   }
@@ -438,6 +438,16 @@
   }
 
   /**
+   * @description 鏌ヨ鏂囦欢鏄惁宸蹭笂浼�
+   */
+  getFilePreUpload (param) {
+    return axios({
+      url: '/webapi/dopreload',
+      data: param
+    })
+  }
+
+  /**
    * @description 鏂囦欢涓婁紶
    */
   getFileUpload (param) {

--
Gitblit v1.8.0