(Integer type, Map<Map<String, String>, File> fileMap, String userpath,Integer keyID)
| 34 | @Autowired |
| 35 | WebDAVImageupload webDAVImageupload; |
| 36 | public ReturnImage storageSource(Integer type, Map<Map<String, String>, File> fileMap, String userpath,Integer keyID){ |
| 37 | ReturnImage returnImage = null; |
| 38 | try { |
| 39 | if(type==1){ |
| 40 | returnImage = nosImageupload.Imageupload(fileMap, userpath,keyID); |
| 41 | }else if (type==2){ |
| 42 | returnImage = ossImageupload.ImageuploadOSS(fileMap, userpath,keyID); |
| 43 | }else if(type==3 ){ |
| 44 | returnImage = ussImageupload.ImageuploadUSS(fileMap, userpath,keyID); |
| 45 | }else if(type==4){ |
| 46 | returnImage = kodoImageupload.ImageuploadKODO(fileMap, userpath,keyID); |
| 47 | }else if(type==5){ |
| 48 | returnImage = LocUpdateImg.ImageuploadLOC(fileMap, userpath,keyID); |
| 49 | }else if(type==6){ |
| 50 | returnImage = cosImageupload.ImageuploadCOS(fileMap, userpath,keyID);; |
| 51 | }else if(type==7){ |
| 52 | returnImage = ftpService.FtpUploadFile(fileMap, userpath,keyID); |
| 53 | }else if(type==8){ |
| 54 | returnImage = s3Imageupload.ImageuploadS3(fileMap, userpath,keyID); |
| 55 | }else if(type==9){ |
| 56 | returnImage = webDAVImageupload.ImageuploadWebDAV(fileMap, userpath,keyID); |
| 57 | } |
| 58 | else{ |
| 59 | new StorageSourceInitException("GetSource类捕捉异常:未找到存储源"); |
| 60 | } |
| 61 | } catch (Exception e) { |
| 62 | new StorageSourceInitException("GetSource类捕捉异常:",e); |
| 63 | e.printStackTrace(); |
| 64 | } |
| 65 | return returnImage; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | } |
no test coverage detected