Sfoglia il codice sorgente

百度网盘md5值不赋值

onecold 8 mesi fa
parent
commit
f12ec776e2

+ 0 - 1
entry/src/main/ets/common/util/RemoteDriveManager.ets

@@ -1524,7 +1524,6 @@ export class RemoteDriveManager {
     videoItem.album = '';
     videoItem.remote_rel_path = entry.path;
     videoItem.baiduFsId = entry.fs_id.toString();
-    videoItem.md5Str = entry.md5;
     if (account && account.id) {
       videoItem.webdav_account_id = account.id.toString();
     }

+ 1 - 15
entry/src/main/ets/pages/WebDavMainPage.ets

@@ -95,7 +95,6 @@ export struct WebDavMainPage {
   @State webDavFiles: FileInfo[] = []; // 直接在页面中保存文件列表副本
   @StorageProp('themeColor') themeColor: string = CommonConstants.DEFAULT_THEME_COLOR;
   @StorageProp('isDarkMode') isDarkMode: boolean = false;
-  @State topRectHeight: number = 0; // 顶部安全区高度
   @State breadcrumbs:BreadcrumbItem[] = []//面包屑导航
 
   @State visibleFoldersState: FileInfo[] = []; // 改为普通状态变量
@@ -205,8 +204,7 @@ export struct WebDavMainPage {
     this.isLongNameRoLL = PreferencesUtil.getBooleanSync('isLongNameRoLL', true)
     this.sortType = PreferencesUtil.getNumberSync('webDavSortType', 0)
     this.isNoJumpToHome = PreferencesUtil.getBooleanSync('isNoJumpToHome', true)
-    // 获取顶部安全区高度
-    this.getTopRectHeight();
+
 
     // 加载账户列表
     this.loadAccounts();
@@ -220,18 +218,6 @@ export struct WebDavMainPage {
     this.subscribeWebDavMetadataUpdates();
   }
 
-  // 获取顶部安全区高度
-  private getTopRectHeight(): void {
-    window.getLastWindow(getContext(this), (err, data) => {
-      if (err.code) {
-        Logger.error(TAG, '获取窗口失败: ' + JSON.stringify(err));
-        return;
-      }
-      const area = data.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM);
-      this.topRectHeight = px2vp(area.topRect.height);
-      Logger.info(TAG, '顶部安全区高度: ' + this.topRectHeight);
-    });
-  }
 
   aboutToDisappear(): void {
     // 取消订阅