Răsfoiți Sursa

update upload aliyun config

deason 1 an în urmă
părinte
comite
db6054f975

+ 1 - 1
examcloud-core-oe-student-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/controller/client/ExamProcessController.java

@@ -196,7 +196,7 @@ public class ExamProcessController extends ControllerSupport {
         FileStoragePathEnvInfo env = new FileStoragePathEnvInfo();
         env.setRootOrgId(String.valueOf(user.getRootOrgId()));
         env.setRelativePath(uploadPath);
-        YunPathInfo result = FileStorageUtil.saveFile(Constants.OE_SITEID, env, file.getBytes(), false);
+        YunPathInfo result = FileStorageUtil.saveFile("oe_pc_client", env, file.getBytes(), false);
 
         return new UploadResult(file.getOriginalFilename(), result.getRelativePath(), result.getUrl());
     }

+ 8 - 1
examcloud-core-oe-student-starter/src/main/resources/aliyun.xml

@@ -16,9 +16,16 @@
     </site>
     <site>
         <id>oe</id>
-        <name>考试资源</name>
+        <name>WEB版考试资源</name>
         <aliyunId>2</aliyunId>
         <maxSize>50M</maxSize>
         <path>/${relativePath}</path>
     </site>
+    <site>
+        <id>oe_pc_client</id>
+        <name>C版考试资源</name>
+        <aliyunId>1</aliyunId>
+        <maxSize>50M</maxSize>
+        <path>/${relativePath}</path>
+    </site>
 </sites>