[IMP] Improve ospp_base and ospp_slide modules

enterprise-opentkr-16.0
Oliver Yuan 2023-04-17 17:15:48 +08:00
parent 42851bf5ab
commit a78482798d
1 changed files with 6 additions and 6 deletions

View File

@ -163,13 +163,13 @@ class ChannelInstance(models.Model):
for rec in self: for rec in self:
subject = f"通知: 《{rec.channel_id.name}》实训环境已经生成" subject = f"通知: 《{rec.channel_id.name}》实训环境已经生成"
html_body = f""" html_body = f"""
@{', '.join([x.partner_id.name for x in rec.user_scope])} 您的实训环境已经创建\n <div>@{', '.join([x.partner_id.name for x in rec.user_scope])} 您的实训环境已经创建\n <div>
环境: {rec.service_url} \n <div>环境: {rec.service_url} \n<div>
账号: {rec.admin_account} \n <div>账号: {rec.admin_account} \n<div>
密码: {rec.admin_password} \n <div>密码: {rec.admin_password} \n<div>
课程: https://www.newbizpaas.cn/slides/{rec.channel_id.id} \n <div>课程: https://www.newbizpaas.cn/slides/{rec.channel_id.id} \n<div>
预祝学习愉快! <div>预祝学习愉快!<div>
""" """
partner_ids = [x.partner_id.id for x in rec.user_scope] partner_ids = [x.partner_id.id for x in rec.user_scope]
kwargs = {} kwargs = {}