This commit is contained in:
hupeng
2020-08-08 22:06:22 +08:00
18 changed files with 113 additions and 90 deletions

View File

@ -62,7 +62,7 @@ public class AuthController {
private final RedisUtils redisUtil;
private final AuthService authService;
@Value("${single.login:false}")
@Value("${single.login}")
private Boolean singleLogin;

View File

@ -682,10 +682,10 @@ public class CreatShareProductService {
}
g.drawImage(priductUrl.getScaledInstance(750,590,Image.SCALE_DEFAULT),0,0,null);
File newFileT = new File("Alibaba-PuHuiTi-Regular.otf");
File newFileT = new File("simsunb.ttf");
if(!newFileT.exists()){
InputStream streamT = getClass().getClassLoader()
.getResourceAsStream("Alibaba-PuHuiTi-Regular.otf");
.getResourceAsStream("simsunb.ttf");
FileUtils.copyInputStreamToFile(streamT, newFileT);
}
Font font = Font.createFont(Font.TRUETYPE_FONT, newFileT);

View File

@ -69,7 +69,9 @@ yshop:
jwt-key: yshopmini
token-expired-in: 86400000
# 是否限制单用户登录
single:
login: false
#是否开启 swagger-ui

View File

@ -62,7 +62,9 @@ spring:
# spring cache 缓存类型为redis 也可以是其他的实现
type: redis
# 是否限制单用户登录
single:
login: false
yshop:
security: