You've already forked FrameTour-BE
feat(watermark): 添加拼图水印模板构建器
- 实现拼图默认水印模板构建器,支持原图区域和底部信息区域布局 - 实现拼图打印水印模板构建器,增加四周白边设计 - 配置二维码、头像、景区名和日期时间的文字布局 - 支持动态数据绑定和图片元素的COVER模式显示 - 提供可选的头像圆形裁剪功能和右对齐文字显示
This commit is contained in:
@@ -727,7 +727,7 @@ public class FaceServiceImpl implements FaceService {
|
||||
|
||||
String dt = DateUtil.format(face.getCreateAt(), "yyyyMMdd");
|
||||
String path = "pages/videoSynthesis/bind_face";
|
||||
String filePath = "wxa_face/"+dt+"/f" + faceId + ".jpg";
|
||||
String filePath = "f" + faceId + ".jpg";
|
||||
IStorageAdapter adapter = StorageFactory.use();
|
||||
if (adapter.isExists(filePath)) {
|
||||
String url = adapter.getUrl(filePath);
|
||||
@@ -743,13 +743,13 @@ public class FaceServiceImpl implements FaceService {
|
||||
try {
|
||||
File file = new File(filePath);
|
||||
WxMpUtil.generateUnlimitedWXAQRCode(appId, appSecret, path, faceId.toString(), file);
|
||||
String url = adapter.uploadFile(null, file, filePath);
|
||||
String url = adapter.uploadFile(null, file, "wxa_face", dt, filePath);
|
||||
file.delete();
|
||||
adapter.setAcl(StorageAcl.PUBLIC_READ, filePath);
|
||||
url = url.replace("-internal.aliyuncs.com", ".aliyuncs.com");
|
||||
return url;
|
||||
} catch (Exception e) {
|
||||
throw new BaseException("生成二维码失败");
|
||||
throw new BaseException("生成二维码失败:"+e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user