diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java index 8547736..90ab9aa 100644 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java +++ b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java @@ -134,8 +134,9 @@ public class WxLoginController extends BaseController { // 上传并返回新文件名称 String fileName = FileUploadUtils.upload(filePath, file); String url = serverConfig.getUrl() + "/prod-api"+ fileName; + String newUrl = url.replace("http", "https"); AjaxResult ajax = success(); - ajax.put("url", url); + ajax.put("url", newUrl); ajax.put("fileName", fileName); ajax.put("newFileName", FileUtils.getName(fileName)); ajax.put("originalFilename", file.getOriginalFilename()); @@ -194,6 +195,9 @@ public class WxLoginController extends BaseController { @GetMapping("/informationList") public TableDataInfo list(WbMaintenanceInformation wbMaintenanceInformation) { + if(StringUtils.isEmpty(wbMaintenanceInformation.getProjectId())){ + return getDataTable(new ArrayList<>()); + } startPage(); List list = wbMaintenanceInformationService.selectWbMaintenanceInformationList(wbMaintenanceInformation); return getDataTable(list);