style: temporarily disable stylecop analyzers

This commit is contained in:
2025-12-04 14:34:24 +08:00
parent 23b69f6f55
commit 7f6eabfead
2 changed files with 2 additions and 4 deletions

View File

@@ -6,11 +6,7 @@
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" />
</ItemGroup>
</Project>

View File

@@ -24,6 +24,8 @@ public sealed class AliyunSmsSender(IHttpClientFactory httpClientFactory, IOptio
logger.LogInformation("Mock 发送阿里云短信到 {Phone}, Template:{Template}", request.PhoneNumber, request.TemplateCode);
return Task.FromResult(new SmsSendResult { Success = true, Message = "Mocked" });
}
// 预留 HttpClient便于后续接入阿里云正式签名请求
using var httpClient = httpClientFactory.CreateClient(nameof(AliyunSmsSender));
// 占位:保留待接入阿里云正式签名流程,当前返回未实现。
logger.LogWarning("阿里云短信尚未启用,请配置腾讯云或开启 UseMock。");