init commit
This commit is contained in:
32
20220330_Vote/Ewide.RoadFlow/Utility/SMS.cs
Normal file
32
20220330_Vote/Ewide.RoadFlow/Utility/SMS.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace RoadFlow.Utility
|
||||
{
|
||||
/// <summary>
|
||||
/// 手机短信类
|
||||
/// </summary>
|
||||
public class SMS
|
||||
{
|
||||
/// <summary>
|
||||
/// 发送手机短信
|
||||
/// </summary>
|
||||
/// <param name="contents">内容</param>
|
||||
/// <param name="mobileNumber">手机号码(多个用逗号分开)</param>
|
||||
/// <returns></returns>
|
||||
public static bool SendSMS(string contents, string mobileNumbers)
|
||||
{
|
||||
if (contents.IsNullOrWhiteSpace())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
string[] numbers = mobileNumbers.Split(',');
|
||||
foreach (string number in numbers)
|
||||
{
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user