@@ -97,29 +97,29 @@ public Flux<Attachment> getChildren(Long driverId, Long pid, String remotePath)
9797 })
9898 .map (att -> {
9999 final String fid = att .getFid ();
100- Pan115Folder pan115Folder = pan115Repository .openFolderGetInfo (fid );
100+ // Pan115Folder pan115Folder = pan115Repository.openFolderGetInfo(fid);
101101 String path = "" ;
102- for (Pan115Path pan115Path : pan115Folder . getPaths ()) {
102+ for (Pan115Path pan115Path : att . getPath ()) {
103103 path += pan115Path .getFile_name ();
104104 path += "/" ;
105105 }
106106
107- AttachmentType type = "1" .equals (pan115Folder . getFile_category ())
107+ AttachmentType type = "1" .equals (att . getFc ())
108108 ? AttachmentType .Driver_File
109109 : AttachmentType .Driver_Directory ;
110110 Attachment attachment = new Attachment ();
111- attachment .setSize (pan115Folder . getSize_byte ());
111+ attachment .setSize (att . getFs ());
112112 attachment .setType (type );
113- attachment .setName (pan115Folder . getFile_name ());
113+ attachment .setName (att . getFn ());
114114 attachment .setUpdateTime (
115- LocalDateTime .ofInstant (Instant .ofEpochMilli (Long . parseLong ( pan115Folder . getUtime () )),
115+ LocalDateTime .ofInstant (Instant .ofEpochMilli (att . getUpt ( )),
116116 ZoneId .systemDefault ()));
117117 attachment .setDriverId (driverId );
118118 attachment .setDeleted (false );
119- attachment .setSha1 (pan115Folder .getSha1 ());
119+ attachment .setSha1 (att .getSha1 ());
120120 attachment .setParentId (pid );
121- attachment .setFsPath (pan115Folder . getFile_id ()); // @see core: AttachmentDriverServiceImpl#refreshRemoteFileSystem
122- String url = pan115Folder . getPick_code ();
121+ attachment .setFsPath (att . getFid ()); // @see core: AttachmentDriverServiceImpl#refreshRemoteFileSystem
122+ String url = att . getPc ();
123123 if (StringUtils .isNotBlank (att .getIco ())
124124 && FileUtils .isImage (att .getIco ())) {
125125 url = att .getUo ();
0 commit comments