deprecate rcmdDyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-06 15:05:31 +08:00
parent 89f72df2b9
commit 215ed665de
4 changed files with 0 additions and 14 deletions

View File

@@ -34,7 +34,6 @@ import 'package:flutter/foundation.dart';
/// view层根据 status 判断渲染逻辑
class VideoHttp {
// static bool enableRcmdDynamic = Pref.enableRcmdDynamic;
static RegExp zoneRegExp = RegExp(Pref.banWordForZone, caseSensitive: false);
static bool enableFilter = zoneRegExp.pattern.isNotEmpty;
@@ -133,7 +132,6 @@ class VideoHttp {
if (i['card_goto'] != 'ad_av' &&
i['card_goto'] != 'ad_web_s' &&
i['ad_info'] == null &&
// (!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
(i['args'] != null &&
!GlobalData().blackMids.contains(i['args']['up_id']))) {
if (enableFilter &&

View File

@@ -18,14 +18,6 @@ List<SettingsModel> get recommendSettings => [
defaultVal: true,
needReboot: true,
),
const SettingsModel(
settingsType: SettingsType.sw1tch,
title: '推荐动态',
subtitle: '是否在推荐内容中展示动态(仅app端)',
leading: Icon(Icons.motion_photos_on_outlined),
setKey: SettingBoxKey.enableRcmdDynamic,
defaultVal: true,
),
SettingsModel(
settingsType: SettingsType.sw1tch,
title: '保留首页推荐刷新',

View File

@@ -41,7 +41,6 @@ class SettingBoxKey {
fullScreenGestureReverse = 'fullScreenGestureReverse',
enableBackgroundPlay = 'enableBackgroundPlay',
continuePlayInBackground = 'continuePlayInBackground',
enableRcmdDynamic = 'enableRcmdDynamic',
appRcmd = 'appRcmd',
enableSaveLastData = 'enableSaveLastData',
minDurationForRcmd = 'minDurationForRcmd',

View File

@@ -653,9 +653,6 @@ abstract class Pref {
static bool get enableHttp2 =>
_setting.get(SettingBoxKey.enableHttp2, defaultValue: false);
static bool get enableRcmdDynamic =>
_setting.get(SettingBoxKey.enableRcmdDynamic, defaultValue: true);
static int get replySortType =>
_setting.get(SettingBoxKey.replySortType, defaultValue: 1);