Commit 78f8cca3 by 徐高华

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

增加非空判断

See merge request !2745
parents 65fb5f62 c58fec84
......@@ -576,10 +576,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