Ejemplo n.º 1
0
        public static void SendFindPwdSMS(Guid appID, string receiveMobile, int smsCode)
        {
            string msg = "您的密码修改网址是 " + WebHostUrl + "?authCode=" + receiveMobile + "," + smsCode + " ,请浏览页面完成修改。如非本人操作,可不予理会,谢谢。";
            var    svc = new InfrastructureRepository();

            svc.SendSMS(new SendSMSParameter()
            {
                AppID         = appID,
                ReceiveMobile = receiveMobile,
                SendMessage   = msg
            });
        }
Ejemplo n.º 2
0
        public static void SendSignUpSMS(Guid appID, string receiveMobile, int smsCode)
        {
            string msg = "您的手机验证码是" + smsCode + ",请在页面填写验证码完成验证。如非本人操作,可不予理会,谢谢。";
            var    svc = new InfrastructureRepository();

            svc.SendSMS(new SendSMSParameter()
            {
                AppID         = appID,
                ReceiveMobile = receiveMobile,
                SendMessage   = msg
            });
        }
Ejemplo n.º 3
0
        public void SendSMS(SendSMSParameter param)
        {
            var repository = new InfrastructureRepository();

            repository.SendSMS(param);
        }