短信配置规则

         //后台存储5分钟内有效
            if (sms.SecondHt == 0) sms.SecondHt = 300;
            //倒计时1分钟
            if (sms.Second == 0) sms.Second = 60;
  SmsInfo sms = new SmsInfo
            {
                Url = _configDev.GetValue<string>($"dev:{provider}:sms:url"),
                AppId = _configDev.GetValue<string>($"dev:{provider}:sms:appId"),
                AppKey = _configDev.GetValue<string>($"dev:{provider}:sms:appKey"),
                AppSecret = _configDev.GetValue<string>($"dev:{provider}:sms:appSecret"),
                SignId = _configDev.GetValue<string>($"dev:{provider}:sms:signId"),
                SmsSign = _configDev.GetValue<string>($"dev:{provider}:sms:{moudleKey}:smsSign") ?? _configDev.GetValue<string>($"dev:{provider}:sms:smsSign"),
                Second = _configDev.GetValue<int>($"dev:{provider}:sms:{moudleKey}:second"),
                SecondHt = _configDev.GetValue<int>($"dev:{provider}:sms:{moudleKey}:secondHt"),
                TemplateId = _configDev.GetValue<string>($"dev:{provider}:sms:{moudleKey}:templateId"),
                Multi = _configDev.GetValue<bool>($"dev:{provider}:sms:{moudleKey}:multi"),
                NationCode = _configDev.GetValue<string>($"dev:{provider}:sms:nationCode"),
                Content = _configDev.GetValue<string>($"dev:{provider}:sms:{moudleKey}:content"),
                Version = _configDev.GetValue<string>($"dev:{provider}:sms:version"),
                Action = _configDev.GetValue<string>($"dev:{provider}:sms:{moudleKey}:action")
            };
            //后台存储5分钟内有效
            if (sms.SecondHt == 0) sms.SecondHt = 300;
            //倒计时1分钟
            if (sms.Second == 0) sms.Second = 60;
文档更新时间: 2023-10-26 07:31   作者:admin