Commit c58fec84 by 徐高华

增加非空判断

parent 67a7c122
......@@ -565,10 +565,12 @@ public class MessageApiServiceImpl implements MessageApiService {
return headImgUrl;
}
byte[] data = ImageUtil.getImgbyte(headImgUrl);
// PicUploadResDTO uploadPic =
// qqCloudPicService.uploadPic(GlobalVar.ctxPropertiesMap.get(GlobalInfo.QQPIC_KEY_ENTERPRISE),
// data);
// 默认后缀为jpg,企业factoryCode取gic内部使用的factoryCode
if(null == data) {
data = ImageUtil.getBytes(headImgUrl);
}
if (null == data) {
return headImgUrl;
}
String suffix = "jpg";
String factoryCode = "gic_inner";
CloudFileTypeEnum cloudFileTypeEnum = CloudFileTypeEnum.IMAGE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment