From 9f18954857e9c4c691fc2c8e83d7728abdc18f74 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期二, 08 七月 2025 17:54:22 +0800
Subject: [PATCH] 添加后台图片前台调用的图床接口备用,修复测试出现的问题

---
 dispatch/GZRobot.cs |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/dispatch/GZRobot.cs b/dispatch/GZRobot.cs
index 11692a7..f4a519f 100644
--- a/dispatch/GZRobot.cs
+++ b/dispatch/GZRobot.cs
@@ -1,13 +1,17 @@
 锘縰sing System;
 using System.Collections.Generic;
 using System.IdentityModel.Protocols.WSTrust;
+using System.Security.Policy;
 using System.Threading.Tasks;
-using HH.WCS.Mobox3.AnGang.util;
+
 using HH.WCS.Mobox3.AnGang.core;
 using HH.WCS.Mobox3.AnGang.models;
+using HH.WCS.Mobox3.AnGang.util;
+
 using Newtonsoft.Json;
-using static HH.WCS.Mobox3.AnGang.api.ApiModel;
+
 using static System.Net.WebRequestMethods;
+using static HH.WCS.Mobox3.AnGang.api.ApiModel;
 
 namespace HH.WCS.Mobox3.AnGang.dispatch {
     /// <summary>
@@ -261,7 +265,8 @@
             }
             else {
                 msg = "[guozi-UpdateInteractInfo]鏇存柊浜や簰淇℃伅澶辫触";
-                Console.WriteLine(msg);
+                //Console.WriteLine(msg);
+                LogHelper.Info(msg);
             }
             return result;
         }
@@ -270,13 +275,18 @@
         // DOC 5.	绉伴噸淇℃伅鏌ヨ
         public static List<CustomData> CustomBuf() {
             var res = new List<CustomData>();
+            
             string msg = "";
-            var result = apiHelper.Get(baseUrl + $"/api/engine/agvs/custom-buf/");
+            //var result = apiHelper.Get(baseUrl + $"/api/engine/agvs/custom-buf/", "application/json");
+            LogHelper.Info($"姝e湪璇锋眰GET: \"/api/engine/agvs/custom-buf/\"", "API");
+            var result = apiHelper.GetNew(baseUrl + $"api/engine/agvs/custom-buf/");
             if (!string.IsNullOrEmpty(result)) {
                 Console.WriteLine(result);
                 
                 try {
+                    LogHelper.Info($"绉伴噸淇℃伅锛� + result);
                     var data = JsonConvert.DeserializeObject<gzResult<CustomData>>(result);
+                    
                     if (data.data != null) {
                         res = data.data;
                     }

--
Gitblit v1.9.1