public ActionResult SendSms() { SendSms sen = new SendSms(); sen.Send(); //需改进内容:验证码随机 手机号录入等 return(View()); }
public void WarnUser() { string message = null; if ((Int32.Parse(Minutes.text) + 10) > 60) { Hours.text = (Int32.Parse(Hours.text) + 1).ToString(); } switch (WarningTimes) { case 1: Minutes.text = ((Int32.Parse(Minutes.text) + 10) % 60).ToString(); Debug.Log("1/3 of the alarm has been set."); WarningTimes++; //play alarm break; case 2: Minutes.text = ((Int32.Parse(Minutes.text) + 10) % 60).ToString(); Debug.Log("2/3 of the alarm has been set."); WarningTimes++; break; case 3: Minutes.text = ((Int32.Parse(Minutes.text) + 10) % 60).ToString(); Debug.Log("3/3 of the alarm has been set."); WarningTimes++; break; case 4: SendMessage.Send(message); break; } }
private void Button_Click(object sender, RoutedEventArgs e) { SendSms sms = new SendSms("ebb92cc757ac922c5af2cc8", "Sepehr007"); sms.Send("09160330976", "تست"); }