feat: save dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 17:31:04 +08:00
parent 457f2ea6c7
commit 82d615fbbf
11 changed files with 234 additions and 131 deletions

View File

@@ -439,6 +439,20 @@ class PiliScheme {
return true;
}
return false;
case 'medialist':
String? mediaId = uriDigitRegExp.firstMatch(path)?.group(1);
if (mediaId != null) {
Utils.toDupNamed(
'/favDetail',
parameters: {
'mediaId': mediaId,
'heroTag': Utils.makeHeroTag(mediaId),
},
off: off,
);
return true;
}
return false;
default:
if (selfHandle.not) {
debugPrint('$uri');

View File

@@ -875,17 +875,6 @@ class Utils {
SmartDialog.showToast('暂未支持的类型,请联系开发者');
break;
/// 纯文字动态查看
case 'DYNAMIC_TYPE_WORD':
debugPrint('纯文本');
Utils.toDupNamed(
'/dynamicDetail',
arguments: {
'item': item,
'floor': floor,
},
);
break;
case 'DYNAMIC_TYPE_LIVE_RCMD':
DynamicLiveModel liveRcmd = item.modules.moduleDynamic.major.liveRcmd;
ModuleAuthorModel author = item.modules.moduleAuthor;
@@ -947,10 +936,13 @@ class Utils {
}
break;
// 纯文字动态查看
// case 'DYNAMIC_TYPE_WORD':
// # 装扮/剧集点评/普通分享
// case 'DYNAMIC_TYPE_COMMON_SQUARE':
// /// 转发的动态
// 转发的动态
// case 'DYNAMIC_TYPE_FORWARD':
// /// 图文动态查看
// 图文动态查看
// case 'DYNAMIC_TYPE_DRAW':
default:
Utils.toDupNamed(