/// <summary>
/// 生成验证码用于手机号注册
/// </summary>
/// <returns></returns>
public static string getRandom()
{
Random rd = new Random();
int AuthCodeNumber = rd.Next(100000, 1000000);
String AuthCode = AuthCodeNumber.ToString();
LogManageBLL.WriteLog("验证码为: " + AuthCode);
return AuthCode;
}
在NuGet解决方案中添加aliyun-net-sdk-core
在项目中添加引用
/// <summary>
/// 发送短信
/// </summary>
/// <param name="iponeNumber"></param>
/// <param name="code"></param>
public static string SendMessage(stri