From 97c0f4248ad467f7db629c77d1d3fc8731ab9508 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 12 Mar 2024 10:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E5=85=AC=E4=BC=9A=E5=8F=91?= =?UTF-8?q?=E9=82=AE=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/sociaty/api_cross_apply.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/sociaty/api_cross_apply.go b/modules/sociaty/api_cross_apply.go index cc86b5d77..7a426d45d 100644 --- a/modules/sociaty/api_cross_apply.go +++ b/modules/sociaty/api_cross_apply.go @@ -145,6 +145,14 @@ func (this *apiComp) Apply(session comm.IUserSession, req *pb.SociatyApplyReq) ( if !isCheck { // 触发任务条件 tasks = append(tasks, comm.GetBuriedParam(comm.Rtype109, 1)) + // 发邮件 + if err := this.module.modelSociaty.sendMail("GuildApproved", []string{sociaty.Name}, []string{uid}); err != nil { + this.module.Error("发送邮件 模板ID:GuildApproved", + log.Field{Key: "uid", Value: uid}, + log.Field{Key: "申请人", Value: uid}, + log.Field{Key: "sociatyId", Value: sociaty.Id}, + ) + } } rsp := &pb.SociatyApplyResp{ Uid: uid,