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