From f348fbb707d46f720f27f83af31598615e9e7737 Mon Sep 17 00:00:00 2001 From: Antinew <2357729423@qq.com> Date: Thu, 17 Jul 2025 19:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B3=A8=E9=87=8A=E6=8E=89lo?= =?UTF-8?q?g=20=E6=B2=A1=E4=B9=B0osskey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/App/AppsService.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/InterfaceForward.Application/Services/App/AppsService.cs b/src/InterfaceForward.Application/Services/App/AppsService.cs index f3b5332..a3ab32d 100644 --- a/src/InterfaceForward.Application/Services/App/AppsService.cs +++ b/src/InterfaceForward.Application/Services/App/AppsService.cs @@ -54,13 +54,13 @@ public class AppsService : ApplicationService .OrderByDescending(a => a.UpdateTime) .ToPagedListAsync(input.PageIndex, input.PageSize); - var logoKeys = res.Items - .Where(x => !x.LogoKey.IsNullOrWhiteSpace()) - .Select(x => x.LogoKey).ToArray(); - var urlDic = OSSHelper.GetUrlByKeys(logoKeys); + // var logoKeys = res.Items + // .Where(x => !x.LogoKey.IsNullOrWhiteSpace()) + // .Select(x => x.LogoKey).ToArray(); + // var urlDic = OSSHelper.GetUrlByKeys(logoKeys); - foreach (var url in urlDic) - res.Items.First(x => x.LogoKey == url.Key).LogoUrl = url.Value; + // foreach (var url in urlDic) + // res.Items.First(x => x.LogoKey == url.Key).LogoUrl = url.Value; return res; } @@ -161,6 +161,7 @@ public class AppsService : ApplicationService throw new BusinessException(message: "应用名称已存在"); if (await _appRepository.IsAnyAsync(x => x.AppKey == input.AppKey)) throw new BusinessException(message: "appkey已存在"); + input.LogoKey = String.Empty; if (await _appRepository.IsAnyAsync(x => x.AppSecret == input.AppSecret)) throw new BusinessException(message: "appsecret已存在");