diff --git a/UniApiGroup/Controller/OdbcApiQadController.cs b/UniApiGroup/Controller/OdbcApiQadController.cs index 86b5631..de3016a 100644 --- a/UniApiGroup/Controller/OdbcApiQadController.cs +++ b/UniApiGroup/Controller/OdbcApiQadController.cs @@ -1713,7 +1713,8 @@ namespace CK.SCP.GrupUniApi.Controller mailbody += "登录地址:" + wwadres + "

"; mailbody += "



日期:" + DateTime.Now; email.EmailString = mailbody; - var user = authdb.Users.FirstOrDefault(q => q.Name.Contains(Ditem.VENDORNO)); + string VENDname = Ditem.VENDORNO + "@W21"; + var user = authdb.Users.FirstOrDefault(q => q.Name == VENDname); if (user == null) { email.EmailSendState = 2; @@ -1874,7 +1875,8 @@ namespace CK.SCP.GrupUniApi.Controller mailbody += "登录地址:" + wwadres + "

"; mailbody += "



日期:" + DateTime.Now; email.EmailString = mailbody; - var user = authdb.Users.FirstOrDefault(q => q.Name.Contains(inentity.VENDORNO)); + string VENDname = inentity.VENDORNO + "@W21"; + var user = authdb.Users.FirstOrDefault(q => q.Name == VENDname); if (user == null) { email.EmailSendState = 2;