fix
Helius
2021-07-16 61631227899badaf6c8474ab9c1722a2a6fc651c
fix
3 files modified
15 ■■■■■ changed files
gc-core/src/main/java/com/xzx/gc/common/utils/image/GraphicsUtils.java 1 ●●●● patch | view | raw | blame | history
gc-core/src/main/resources/application.properties 2 ●●● patch | view | raw | blame | history
gc-order/src/test/java/SpringTest.java 12 ●●●●● patch | view | raw | blame | history
gc-core/src/main/java/com/xzx/gc/common/utils/image/GraphicsUtils.java
@@ -79,6 +79,7 @@
                }
            }
        } catch (Exception e) {
            log.error("报错:", e);
            return null;
        }
        log.debug("生成海报成功,路径:" + imgPath);
gc-core/src/main/resources/application.properties
@@ -11,7 +11,7 @@
#log
project.log.path=xzx/logs
project.log.path=/xzx/logs
logstash.server.url=localhost:4560
#spring
gc-order/src/test/java/SpringTest.java
@@ -22,6 +22,7 @@
import com.xzx.gc.common.utils.SpringUtil;
import com.xzx.gc.common.utils.gdmap.GdMapUtil;
import com.xzx.gc.common.utils.gdmap.GdTraceUtil;
import com.xzx.gc.common.utils.image.GraphicsUtils;
import com.xzx.gc.entity.*;
import com.xzx.gc.model.order.FenceDto;
import com.xzx.gc.model.user.AccountVo;
@@ -777,5 +778,16 @@
    }
    @Autowired
    private GraphicsUtils graphicsUtils;
    @Test
    public void haibaoTest() {
        String imageName = "/test.jpg";
        String path = "/Users/helius/Desktop/acode.jpg";
        String avatar = "https://thirdwx.qlogo.cn/mmopen/vi_32/POgEwh4mIHO4nibH0KlMECNjjGxQUq24ZEaGT4poC6icRiccVGKSyXwibcPq4BWmiaIGuG1icwxaQX6grC9VemZoJ8rg/132";
        String backgroundUrl = "/Users/helius/Desktop/user_share_poster_bg.png";
        graphicsUtils.generatePoster(imageName, path, avatar, backgroundUrl, "15200889645", 100, 340, 57, 94, 230, 160, 40);    }
}