/// <summary> /// 更新短信设置 /// </summary> /// <param name="settings"></param> /// <returns></returns> private async Task UpdateSMSSettingsAsync(SMSSettingsEditDto settings) { await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.UseCaptchaToVerification, settings.UseCaptchaToVerification.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.RegisterVerificationTempId, settings.RegisterVerificationTempId.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.ChangePasswordVerificationTempId, settings.ChangePasswordVerificationTempId.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.BindingPhoneVerificationTempId, settings.BindingPhoneVerificationTempId.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.UnBindingPhoneVerificationTempId, settings.UnBindingPhoneVerificationTempId.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.LoginVerificationTempId, settings.LoginVerificationTempId.ToString()); await SettingManager.ChangeSettingForApplicationAsync(AppSettings.SMSManagement.PhoneVerificationTempId, settings.PhoneVerificationTempId.ToString()); }
private async Task UpdatSMSSettingsAsync(SMSSettingsEditDto input) { await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.AppKey, input.AppKey); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.AppSecret, input.AppSecret); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.SignName, input.SignName); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserIdentityValidateTemplateCode, input.UserIdentityValidateTemplateCode); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserLoginConfirmTemplateCode, input.UserLoginConfirmTemplateCode); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserLoginErrorTemplateCode, input.UserLoginErrorTemplateCode); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserRegisterTemplateCode, input.UserRegisterTemplateCode); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserChangePasswordTemplateCode, input.UserChangePasswordTemplateCode); await SettingManager.ChangeSettingForTenantAsync(AbpSession.GetTenantId(), AppSettings.SMSManagement.UserChangeInformationTemplateCode, input.UserChangeInformationTemplateCode); }