feat(erp): 实现按用户地区隔离的最新产品查询逻辑
- 修改AmazonController以支持按用户和区域筛选最新会话数据 - 更新AmazonProductRepository中的findLatestProducts方法,增加region参数实现数据隔离 -优化AmazonScrapingServiceImpl的数据处理流程,增强缓存清理机制 - 调整GenmaiServiceImpl的token验证逻辑并改进Chrome启动配置- 升级系统版本至2.5.5并完善相关依赖管理 - 改进前端设置对话框中关于缓存清理描述的信息准确性 -重构SystemController接口,移除不必要的用户名参数传递- 强化GenmaiAccountController和服务层的安全校验逻辑
This commit is contained in:
@@ -42,6 +42,7 @@ public class GenmaiAccountController {
|
||||
public R<?> saveAccount(@RequestBody GenmaiAccount body, String name) {
|
||||
if (body.getId() == null) {
|
||||
String token = accountService.validateAndGetToken(body.getUsername(), body.getPassword());
|
||||
if (token == null) throw new RuntimeException("账号密码验证失败,请检查后重试");
|
||||
body.setToken(token);
|
||||
body.setTokenExpireAt(new Date(System.currentTimeMillis() + 30L * 24 * 60 * 60 * 1000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user