Przeglądaj źródła

用户邮箱验证码

huangxingxing 3 miesięcy temu
rodzic
commit
7b14c4011a

+ 6 - 6
src/main/java/com/miniframe/bisiness/system/A00001Service.java

@@ -92,13 +92,13 @@ public class A00001Service extends A00001BaseModel implements ExecProcessFlow {
             UtilTools.putUserCache(ID, code);
             UtilTools.putCache(XIConstant.CODESENDNUM,verifyNumKey,++codesendNum);
             if(this.getA_a00001().getChannel().equals(MessageChannel.email.getIndex())){
-//                MFServiceUtils.getMailService()
-//                        .sendSimpleMail(this.getA_a00001().getMailOrPhone(), "验证码", "您的邮箱验证码:" + code);
-                Map<String, Object> var3 =new HashMap<>();
-                var3.put("username","用户");
-                var3.put("verification_code",code);
                 MFServiceUtils.getMailService()
-                        .sendTemplateMail(this.getA_a00001().getMailOrPhone(), this.getA_a00001().getMailOrPhone(), var3,"mail_script");
+                        .sendSimpleMail(this.getA_a00001().getMailOrPhone(), "验证码", "您的邮箱验证码:" + code);
+//                Map<String, Object> var3 =new HashMap<>();
+//                var3.put("username","用户");
+//                var3.put("verification_code",code);
+//                MFServiceUtils.getMailService()
+//                        .sendTemplateMail(this.getA_a00001().getMailOrPhone(), this.getA_a00001().getMailOrPhone(), var3,"mail_script");
 
 
             }else if(this.getA_a00001().getChannel().equals(MessageChannel.phone.getIndex())){