From 933b4c4480563a22bf312ebc24161ea7270caf29 Mon Sep 17 00:00:00 2001
From: 移动系统liao <liaoxujun@qq.com>
Date: 星期四, 14 八月 2025 14:08:54 +0800
Subject: [PATCH] 修正阿里云 oss上传逻辑

---
 Web/src/views/Customer/fBS_EnterpriseType/index.vue |    4 ++--
 Admin.NET/EzUpFile/EzFileUploadService.cs           |    8 +++++++-
 Admin.NET/EzUpFile/UpFileConfig.json                |    7 ++++---
 3 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Admin.NET/EzUpFile/EzFileUploadService.cs b/Admin.NET/EzUpFile/EzFileUploadService.cs
index 568e928..6fd4569 100644
--- a/Admin.NET/EzUpFile/EzFileUploadService.cs
+++ b/Admin.NET/EzUpFile/EzFileUploadService.cs
@@ -22,6 +22,7 @@
 using Task = System.Threading.Tasks.Task;
 using Newtonsoft.Json;
 using static AlibabaCloud.SDK.Sts20150401.Models.AssumeRoleResponseBody;
+using Admin.NET.Core;
 namespace EzUpFile
 {
     /// <summary>
@@ -717,7 +718,12 @@
             { "x_oss_date", dtObj1 },
             { "x_oss_credential", $"{stsAccessKeyId}/{dtObj2}/{regionId}/oss/aliyun_v4_request" }, // 璇峰皢<cn-hangzhou>鏇挎崲涓烘偍鐨勫疄闄匓ucket鎵�澶勫湴鍩燂紝渚嬪鍖椾含鍦板煙涓猴細cn-beijing
             { "x_oss_signature_version", "OSS4-HMAC-SHA256" },
-            { "policy", stringToSign }
+            { "policy", stringToSign },
+                {"url", App.Configuration["FileUploadOptions:AliOSSSaveBaseUrl"]},
+                  {"CallBack", App.Configuration["FileUploadOptions:CallBack"]},
+                   {"DirPath", App.Configuration["FileUploadOptions:SavePath"]},
+                  
+
         };
 
             // 鎵撳嵃杩斿洖鑷冲鎴风鐨勭鍚嶄俊鎭�
diff --git a/Admin.NET/EzUpFile/UpFileConfig.json b/Admin.NET/EzUpFile/UpFileConfig.json
index d8a0aca..cdff7d1 100644
--- a/Admin.NET/EzUpFile/UpFileConfig.json
+++ b/Admin.NET/EzUpFile/UpFileConfig.json
@@ -1,12 +1,13 @@
 {
   "FileUploadOptions": {
 
-    "AliOSSBucketName": "appimchat",
-    "SavePath": "cylsg/",
+    "AliOSSBucketName": "feizhengcai",
+    "SavePath": "ZBWJ/",
     "AliOSSEndpoint": "oss-accelerate.aliyuncs.com",
     "AliOSSAccessKeyID": "LTAI5tNYGwTd3swLhC8H2XYV",
     "AliOSSAccessKeySecret": "TyfkpYbXRUCh1K8LLtUyxY3ZcFCy1A",
-    "AliOSSSaveBaseUrl": "https://appimchat.oss-cn-chengdu.aliyuncs.com/"
+    "AliOSSSaveBaseUrl": "https://feizhengcai.oss-cn-chengdu.aliyuncs.com/",
+    "CallBack": "CallBack"
 
   }
 }
diff --git a/Web/src/views/Customer/fBS_EnterpriseType/index.vue b/Web/src/views/Customer/fBS_EnterpriseType/index.vue
index e92ed6c..468bbef 100644
--- a/Web/src/views/Customer/fBS_EnterpriseType/index.vue
+++ b/Web/src/views/Customer/fBS_EnterpriseType/index.vue
@@ -33,7 +33,7 @@
   tableData: [],
   tableDataCopy:[] //鎷疯礉
 });
-const hasChildren = data => {
+const hasChildren = (data: any[]) => {
   data.forEach(item => {
     if (item.child) {
       item.hasChildren = true;
@@ -41,7 +41,7 @@
   });
   
 };
-const processNodesWithChildrenCheck = (nodes) => {
+const processNodesWithChildrenCheck = (nodes: any[]) => {
   
   // 纭繚杈撳叆鏄暟缁�
   if (!Array.isArray(nodes)) {

--
Gitblit v1.9.1