wangwei 5 år sedan
förälder
incheckning
0f827c75f5

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

@@ -649,6 +649,9 @@ public class OrgController extends ControllerSupport {
 	private List<String> uploadOrgProperties2Upyun(Long orgId, String propertyGroupId) {
 		Map<String, String> properties = getOrgPropertiesByGroup(orgId, propertyGroupId);
 
+		OrgCacheBean org = CacheHelper.getOrg(orgId);
+		properties.put("ROOT_ORG_ID", String.valueOf(org.getRootId()));
+
 		OrgEntity orgEntity = GlobalHelper.getEntity(orgRepo, orgId, OrgEntity.class);
 		String fileSuffix = ".json";