MicroCloud.SMS 8.0.3.1

dotnet add package MicroCloud.SMS --version 8.0.3.1
                    
NuGet\Install-Package MicroCloud.SMS -Version 8.0.3.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="MicroCloud.SMS" Version="8.0.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MicroCloud.SMS" Version="8.0.3.1" />
                    
Directory.Packages.props
<PackageReference Include="MicroCloud.SMS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MicroCloud.SMS --version 8.0.3.1
                    
#r "nuget: MicroCloud.SMS, 8.0.3.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.
#:package MicroCloud.SMS@8.0.3.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MicroCloud.SMS&version=8.0.3.1
                    
Install as a Cake Addin
#tool nuget:?package=MicroCloud.SMS&version=8.0.3.1
                    
Install as a Cake Tool

MicroCloud 短信组件

Member project of MicroCloud Team NuGet Badge GitHub license

说明

MicroCloud 短信组件,封装阿里云、逸峰信盈通验证码、通知、推广短信处理功能。目前已完成验证码短信发送、验证的处理机制。

用法

可按照如下配置方式使用:

  1. 通过nuget引用 MicroCloud.SMS 程序集
Install-Package MicroCloud.SMS
  1. appsettings.json 中 的 MicroCloud 节点下添加如下配置节点
{
  "SMS": {
      "Provider": "YFXYT", //短信服务提供商:"Aliyun"-阿里云、"YFXYT"-逸峰信盈通
      "Id": "服务商授权ID", //服务商授权ID:联系服务商获取
      "Secret": "服务商授权密钥", //服务商授权密钥:联系服务商获取
      "SignName": "短信签名名称", //短信签名名称:联系服务商设置并获取
      "VerifyCodeTemplate": "验证码短信模板", //验证码短信模板:联系服务商设置并获取(逸峰信盈通不需要)
      "VerifyCodeTempParam": "{{\"code\":\"{0}\"}}", //验证码短信模板参数:联系服务商设置并获取(逸峰信盈通不需要)
      "VerifyCodeSMS": "尊敬的用户您好,您的验证码:{0},{1}分钟有效,请及时操作,祝您生活愉快!", //验证码短信内容,{0} 表示为验证码内容,{1} 表示为有效分钟数
      "NoticeTemplate": "通知短信模板", //通知短信模板
      "NoticeTempParam": "{{\"customer\":\"{0}\",\"code\":\"{1}\",\"mins\":\"{2}\"}}", //通知短信模板参数
      "PromoteTemplate": "推广短信模板", //推广短信模板
      "VerifyCodeExpireMins": 3, //验证码有效期分钟数(1-1440),默认3
      "LimitOfNumberDay": 5, //1个自然日内短信发送条数限制(0表示不限制),默认0
      "StorageDays": 30 //存储天数(0表示永久存储),默认0
    } 
}
  1. Provider属性为短信服务提供商,目前只支持阿里云 "Aliyun",峰逸云信通 "YFXYT"。

交流

QQ WeChat
QQ群号:863605868 微信号:SeonHu
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MicroCloud.SMS:

Package Downloads
MicroCloud.Pack.SMS

MicroCloud 短信模块,封装基于 MicroCloud 短信组件的功能实现。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.3.1 341 9/9/2024
8.0.2.9 324 9/5/2024
8.0.2.8 319 8/31/2024
8.0.2.7 328 8/31/2024
8.0.2.6 325 8/21/2024
8.0.2.5 337 8/21/2024
8.0.2.4 328 8/12/2024
8.0.2.3 311 8/8/2024
8.0.2.2 323 7/14/2024
8.0.2.1 312 6/7/2024
8.0.1.9 314 6/6/2024
8.0.1.8 309 6/6/2024
8.0.1.7 320 5/15/2024
8.0.1.6 281 5/15/2024
8.0.1.5 286 5/15/2024
8.0.1.4 281 5/14/2024
8.0.1.3 286 5/10/2024
8.0.1.2 335 5/8/2024
8.0.1.1 344 5/7/2024
8.0.0.9 311 5/1/2024
8.0.0.8 327 5/1/2024
8.0.0.7 336 4/30/2024
8.0.0.5 320 4/19/2024
8.0.0.4 314 4/18/2024
8.0.0.3 344 4/15/2024
8.0.0.2 336 4/12/2024
8.0.0.1 307 4/12/2024
7.2.0.8 331 4/12/2024
7.2.0.7 319 4/12/2024
7.2.0.6 330 4/12/2024
7.2.0.5 330 4/12/2024
7.2.0.4 326 4/11/2024
7.2.0.2 371 4/7/2024
7.2.0.1 553 10/26/2023
7.1.2.9 218 11/7/2023
7.1.2.8 215 10/19/2023
7.1.2.7 202 10/19/2023
7.1.2.6 224 10/18/2023
7.1.2.5 268 9/20/2023
7.1.2.4 357 9/20/2023
7.0.2.6 461 5/11/2023
7.0.1.7 460 5/9/2023
7.0.1.6 453 5/9/2023
7.0.1.4 502 4/24/2023
7.0.1.3 495 4/19/2023
7.0.1.2 538 4/19/2023
7.0.0.9 467 4/18/2023
7.0.0.8 452 4/17/2023
7.0.0.7 546 4/12/2023
7.0.0.6 532 4/8/2023
7.0.0.5 495 4/7/2023
7.0.0.4 527 4/7/2023
7.0.0.3 523 4/7/2023