去除发邮件的测试类
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user