济工网考勤图片路径修改

dev_xd
lj7788 2025-08-29 09:27:43 +08:00
parent 6fa8b2e3d0
commit 65eed2b6ce
1 changed files with 8 additions and 5 deletions

View File

@ -1100,11 +1100,14 @@ public class AttendanceJgwTask {
* @return
*/
private String getPhoto(String appId, String token, String proPackage, String datePath, String photo) {
try {
MultipartFile multipartFile = FileUtils.downloadFileToMultipart("https://gymspic1.oss-cn-shanghai.aliyuncs.com/"+photo);
return remoteFileService.dirDatePathUploadFile(proPackage,"jgw",datePath, multipartFile).getData().getUrl();
}catch (Exception e){
e.printStackTrace();
String[] sits="https://gymspic1.oss-cn-shanghai.aliyuncs.com/,https://oss.gongyoumishu.com/".split(",");
for(String sit:sits) {
try {
MultipartFile multipartFile = FileUtils.downloadFileToMultipart(sit + photo);
return remoteFileService.dirDatePathUploadFile(proPackage, "jgw", datePath, multipartFile).getData().getUrl();
} catch (Exception e) {
e.printStackTrace();
}
}
/**try {
String path = "/webapi/dictInfo/getPhoyoAllPaths";