Compare commits

..

1 Commits

Author SHA1 Message Date
Eric_Lee
ab777aeb18 perf: update rdp params 2025-12-19 15:44:14 +08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -66,6 +66,8 @@ class RDPFileClientProtocolURLMixin:
'autoreconnection enabled:i': '1', 'autoreconnection enabled:i': '1',
'bookmarktype:i': '3', 'bookmarktype:i': '3',
'use redirection server name:i': '0', 'use redirection server name:i': '0',
'bitmapcachepersistenable:i': '0',
'bitmapcachesize:i': '1500',
} }
# 设置多屏显示 # 设置多屏显示
multi_mon = is_true(self.request.query_params.get('multi_mon')) multi_mon = is_true(self.request.query_params.get('multi_mon'))

View File

@@ -1,10 +1,10 @@
import os import os
import jms_storage
from celery import shared_task from celery import shared_task
from django.conf import settings from django.conf import settings
from django.core.mail import send_mail, EmailMultiAlternatives, get_connection from django.core.mail import send_mail, EmailMultiAlternatives, get_connection
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
import jms_storage
from .utils import get_logger from .utils import get_logger
@@ -71,7 +71,10 @@ def send_mail_attachment_async(subject, message, recipient_list, attachment_list
for attachment in attachment_list: for attachment in attachment_list:
email.attach_file(attachment) email.attach_file(attachment)
os.remove(attachment) os.remove(attachment)
return email.send() try:
return email.send()
except Exception as e:
logger.error("Sending mail attachment error: {}".format(e))
@shared_task(verbose_name=_('Upload session replay to external storage')) @shared_task(verbose_name=_('Upload session replay to external storage'))