wangwei há 6 anos atrás
pai
commit
ada92ac177

+ 4 - 0
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/core/basic/api/controller/OrgController.java

@@ -990,6 +990,10 @@ public class OrgController extends ControllerSupport {
 
 		orgPropertyRepo.save(fileSuffixEntity);
 
+		String path = systemConfig.getTempDataDir() + "/logo/" + orgId
+				+ fileSuffixEntity.getValue();
+
+		FileUtils.copyFile(storeLocation, new File(path));
 	}
 
 	@ApiOperation(value = "删除子机构", notes = "")