wangwei hace 6 años
padre
commit
76dbc6c60f

+ 3 - 1
examcloud-exchange-outer-service/src/main/java/cn/com/qmth/examcloud/exchange/outer/service/impl/UpyunServiceImpl.java

@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.exchange.outer.service.impl;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.Locale;
 
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
@@ -60,7 +61,8 @@ public class UpyunServiceImpl implements UpyunService {
 
 	@Override
 	public String writeFile(Long rootOrgId, String identityNumber, String fileName, File file) {
-		String photoPath = rootOrgId + "/" + UrlUtil.encode(identityNumber) + "/" + fileName;
+		String photoPath = rootOrgId + "/" + UrlUtil.encode(identityNumber).toUpperCase(Locale.US)
+				+ "/" + fileName;
 
 		String filePath = "/student_base_photo" + "/" + photoPath;