fix 68471 消息中心-模板管理-导入失败
This commit is contained in:
+2
-2
@@ -172,8 +172,8 @@ public class JeroController<T, S extends IService<T>> {
|
||||
// 获取上传文件对象
|
||||
MultipartFile file = entity.getValue();
|
||||
ImportParams params = new ImportParams();
|
||||
params.setTitleRows(2);
|
||||
params.setHeadRows(1);
|
||||
/*params.setTitleRows(2);
|
||||
params.setHeadRows(1);*/
|
||||
params.setNeedSave(true);
|
||||
try {
|
||||
List<T> list = ExcelImportUtil.importExcel(file.getInputStream(), clazz, params);
|
||||
|
||||
+2
-1
@@ -79,7 +79,8 @@ public class JwtUtil {
|
||||
* @return 加密的token
|
||||
*/
|
||||
public static String sign(String username, String secret) {
|
||||
Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME);
|
||||
// 24小时后过期
|
||||
Date date = new Date(System.currentTimeMillis() + EXPIRE_TIME * 48);
|
||||
Algorithm algorithm = Algorithm.HMAC256(secret);
|
||||
// 附带username信息
|
||||
return JWT.create().withClaim(USERNAME_FIELD, username).withExpiresAt(date).sign(algorithm);
|
||||
|
||||
Reference in New Issue
Block a user