去除发邮件的测试类
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package com.quinn.intergration;
|
package com.quinn.intergration;
|
||||||
|
|
||||||
import com.quinn.common.QuinnConstant;
|
import com.quinn.common.QuinnConstant;
|
||||||
import com.quinn.utils.HttpUtils;
|
|
||||||
import sun.misc.BASE64Encoder;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 使用@multiavatar生成头像
|
* 使用@multiavatar生成头像
|
||||||
@@ -38,14 +36,14 @@ public enum AttrIcon {
|
|||||||
public String generateImg(String name) {
|
public String generateImg(String name) {
|
||||||
String attrUrl = "https://api.multiavatar.com/";
|
String attrUrl = "https://api.multiavatar.com/";
|
||||||
String value = ".png";
|
String value = ".png";
|
||||||
try{
|
// try{
|
||||||
byte[] bytes = HttpUtils.doByteGet(attrUrl + name + value);
|
// byte[] bytes = HttpUtils.doByteGet(attrUrl + name + value);
|
||||||
if (bytes.length > 0){
|
// if (bytes.length > 0){
|
||||||
return new BASE64Encoder().encode(bytes);
|
// return new BASE64Encoder().encode(bytes);
|
||||||
}
|
// }
|
||||||
}catch (Exception e){
|
// }catch (Exception e){
|
||||||
return QuinnConstant.DEFAULT_ATTR_BASE64;
|
// return QuinnConstant.DEFAULT_ATTR_BASE64;
|
||||||
}
|
// }
|
||||||
return QuinnConstant.DEFAULT_ATTR_BASE64;
|
return QuinnConstant.DEFAULT_ATTR_BASE64;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class RedisTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void sendEmail(){
|
public void sendEmail(){
|
||||||
sendBMail.sendOneParamMail(EmailType.SUCCESS,"1234","540344226@qq.com");
|
// sendBMail.sendOneParamMail(EmailType.SUCCESS,"1234","540344226@qq.com");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user