SiHan.Asp.Sms 1.0.1

dotnet add package SiHan.Asp.Sms --version 1.0.1                
NuGet\Install-Package SiHan.Asp.Sms -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SiHan.Asp.Sms" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SiHan.Asp.Sms --version 1.0.1                
#r "nuget: SiHan.Asp.Sms, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SiHan.Asp.Sms as a Cake Addin
#addin nuget:?package=SiHan.Asp.Sms&version=1.0.1

// Install SiHan.Asp.Sms as a Cake Tool
#tool nuget:?package=SiHan.Asp.Sms&version=1.0.1                

SiHan.Asp.Sms

ASP.NET Core 短信验证码库,核心类如下:

  • ISmsService:短信发送服务接口,约定验证码发送接口。
  • Mb345Service:凌凯短信服务
  • SmsException:短信发送异常,包含短信发生失败的原因。

凌凯短信服务

必须在配置项中添加以下内容:

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "Mb345": {
    "UserName": "*****",
    "Password": "*****",
    "SuffixName": "*****",
    "OperateTime": "10"
  }
}

其中OperateTime为选填,单位是分钟,没有OperateTime此项,将默认是10。

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.1 is compatible.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 488 12/25/2019