mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
deprecate rcmdDyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -34,7 +34,6 @@ import 'package:flutter/foundation.dart';
|
|||||||
|
|
||||||
/// view层根据 status 判断渲染逻辑
|
/// view层根据 status 判断渲染逻辑
|
||||||
class VideoHttp {
|
class VideoHttp {
|
||||||
// static bool enableRcmdDynamic = Pref.enableRcmdDynamic;
|
|
||||||
static RegExp zoneRegExp = RegExp(Pref.banWordForZone, caseSensitive: false);
|
static RegExp zoneRegExp = RegExp(Pref.banWordForZone, caseSensitive: false);
|
||||||
static bool enableFilter = zoneRegExp.pattern.isNotEmpty;
|
static bool enableFilter = zoneRegExp.pattern.isNotEmpty;
|
||||||
|
|
||||||
@@ -133,7 +132,6 @@ class VideoHttp {
|
|||||||
if (i['card_goto'] != 'ad_av' &&
|
if (i['card_goto'] != 'ad_av' &&
|
||||||
i['card_goto'] != 'ad_web_s' &&
|
i['card_goto'] != 'ad_web_s' &&
|
||||||
i['ad_info'] == null &&
|
i['ad_info'] == null &&
|
||||||
// (!enableRcmdDynamic ? i['card_goto'] != 'picture' : true) &&
|
|
||||||
(i['args'] != null &&
|
(i['args'] != null &&
|
||||||
!GlobalData().blackMids.contains(i['args']['up_id']))) {
|
!GlobalData().blackMids.contains(i['args']['up_id']))) {
|
||||||
if (enableFilter &&
|
if (enableFilter &&
|
||||||
|
|||||||
@@ -18,14 +18,6 @@ List<SettingsModel> get recommendSettings => [
|
|||||||
defaultVal: true,
|
defaultVal: true,
|
||||||
needReboot: true,
|
needReboot: true,
|
||||||
),
|
),
|
||||||
const SettingsModel(
|
|
||||||
settingsType: SettingsType.sw1tch,
|
|
||||||
title: '推荐动态',
|
|
||||||
subtitle: '是否在推荐内容中展示动态(仅app端)',
|
|
||||||
leading: Icon(Icons.motion_photos_on_outlined),
|
|
||||||
setKey: SettingBoxKey.enableRcmdDynamic,
|
|
||||||
defaultVal: true,
|
|
||||||
),
|
|
||||||
SettingsModel(
|
SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
title: '保留首页推荐刷新',
|
title: '保留首页推荐刷新',
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ class SettingBoxKey {
|
|||||||
fullScreenGestureReverse = 'fullScreenGestureReverse',
|
fullScreenGestureReverse = 'fullScreenGestureReverse',
|
||||||
enableBackgroundPlay = 'enableBackgroundPlay',
|
enableBackgroundPlay = 'enableBackgroundPlay',
|
||||||
continuePlayInBackground = 'continuePlayInBackground',
|
continuePlayInBackground = 'continuePlayInBackground',
|
||||||
enableRcmdDynamic = 'enableRcmdDynamic',
|
|
||||||
appRcmd = 'appRcmd',
|
appRcmd = 'appRcmd',
|
||||||
enableSaveLastData = 'enableSaveLastData',
|
enableSaveLastData = 'enableSaveLastData',
|
||||||
minDurationForRcmd = 'minDurationForRcmd',
|
minDurationForRcmd = 'minDurationForRcmd',
|
||||||
|
|||||||
@@ -653,9 +653,6 @@ abstract class Pref {
|
|||||||
static bool get enableHttp2 =>
|
static bool get enableHttp2 =>
|
||||||
_setting.get(SettingBoxKey.enableHttp2, defaultValue: false);
|
_setting.get(SettingBoxKey.enableHttp2, defaultValue: false);
|
||||||
|
|
||||||
static bool get enableRcmdDynamic =>
|
|
||||||
_setting.get(SettingBoxKey.enableRcmdDynamic, defaultValue: true);
|
|
||||||
|
|
||||||
static int get replySortType =>
|
static int get replySortType =>
|
||||||
_setting.get(SettingBoxKey.replySortType, defaultValue: 1);
|
_setting.get(SettingBoxKey.replySortType, defaultValue: 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user