修复漏洞(对报错信息进行自定义,避免泄露系统敏感信息)
This commit is contained in:
@@ -37,6 +37,9 @@ public class AppCompanyContactController extends BaseController {
|
||||
@ApiOperation("公司联系人列表")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CompanyContact companyContact){
|
||||
if(companyContact.getCompanyId()==null){
|
||||
return error(400,"无效的企业id!");
|
||||
}
|
||||
List<CompanyContact> list=companyContactService.getSelectList(companyContact);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@@ -38,6 +38,9 @@ public class AppFileController extends BaseController {
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(File file)
|
||||
{
|
||||
if(file.getBussinessid()==null){
|
||||
return error(400,"无效的业务id!");
|
||||
}
|
||||
List<File> results = fileService.selectFileList(file);
|
||||
return getDataTable(results);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user