Commit 055efe1b by 徐高华

Merge branch 'feature/xgh/2502朋友圈' into 'master'

增加非空判断

See merge request !2746
parents 2279516c c58fec84
......@@ -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