去除发邮件的测试类

This commit is contained in:
limqhz
2022-05-15 21:46:15 +08:00
parent cce09bf997
commit 3b72ee96fa
2 changed files with 9 additions and 11 deletions

View File

@@ -1,8 +1,6 @@
package com.quinn.intergration;
import com.quinn.common.QuinnConstant;
import com.quinn.utils.HttpUtils;
import sun.misc.BASE64Encoder;
/**
* 使用@multiavatar生成头像
@@ -38,14 +36,14 @@ public enum AttrIcon {
public String generateImg(String name) {
String attrUrl = "https://api.multiavatar.com/";
String value = ".png";
try{
byte[] bytes = HttpUtils.doByteGet(attrUrl + name + value);
if (bytes.length > 0){
return new BASE64Encoder().encode(bytes);
}
}catch (Exception e){
return QuinnConstant.DEFAULT_ATTR_BASE64;
}
// try{
// byte[] bytes = HttpUtils.doByteGet(attrUrl + name + value);
// if (bytes.length > 0){
// return new BASE64Encoder().encode(bytes);
// }
// }catch (Exception e){
// return QuinnConstant.DEFAULT_ATTR_BASE64;
// }
return QuinnConstant.DEFAULT_ATTR_BASE64;
}