|
|
@@ -166,7 +166,7 @@ public class TeamService {
|
|
|
public BufferedImage recruitImg(Long userId) throws IOException, FontFormatException, WxErrorException {
|
|
|
UserInfo userInfo = userInfoRepository.findById(userId).orElseThrow(new ServiceException("用户不存在"));
|
|
|
|
|
|
- Font pingFangRegular = Font.createFont(Font.TRUETYPE_FONT, this.getClass().getResourceAsStream("static/PingFangRegular.ttf"));
|
|
|
+ Font pingFangRegular = Font.createFont(Font.TRUETYPE_FONT, this.getClass().getResourceAsStream("/static/PingFangRegular.ttf"));
|
|
|
Font pingFangMedium = Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource("static/PingFangMedium.ttf").getFile());
|
|
|
Font robot = Font.createFont(Font.TRUETYPE_FONT, new ClassPathResource("static/Roboto-Black.ttf").getFile());
|
|
|
BufferedImage shareImg = ImageIO.read(ClassLoader.getSystemResource("static/share_img.png"));
|