|
@@ -13,6 +13,7 @@ import com.miniframe.tools.msg.IdentifyingCodeUtil;
|
|
|
import com.miniframe.utils.MFServiceUtils;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -91,7 +92,15 @@ 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);
|
|
|
+// 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");
|
|
|
+
|
|
|
+
|
|
|
}else if(this.getA_a00001().getChannel().equals(MessageChannel.phone.getIndex())){
|
|
|
IdentifyingCodeUtil.sendSMSAli(this.getA_a00001().getMailOrPhone(),code);
|
|
|
}
|