Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: 国殇修改判断条件不判断未登录
Showing
1 changed file
with
6 additions
and
7 deletions
| @@ -85,8 +85,8 @@ export class GrayManageModel { | @@ -85,8 +85,8 @@ export class GrayManageModel { | ||
| 85 | 85 | ||
| 86 | // 国殇模式开启 | 86 | // 国殇模式开启 |
| 87 | public isMourning(): boolean { | 87 | public isMourning(): boolean { |
| 88 | - // 基础条件:用户已登录且国殇模式主开关开启 | ||
| 89 | - if (!this.user_id || !this.switchOpen) { | 88 | + // 基础条件:国殇模式主开关开启 |
| 89 | + if (!this.switchOpen) { | ||
| 90 | return false; | 90 | return false; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| @@ -102,7 +102,6 @@ export class GrayManageModel { | @@ -102,7 +102,6 @@ export class GrayManageModel { | ||
| 102 | // 国殇模式开启 底导国殇模式开启 | 102 | // 国殇模式开启 底导国殇模式开启 |
| 103 | public isBottomNavMourning(): boolean { | 103 | public isBottomNavMourning(): boolean { |
| 104 | return ( | 104 | return ( |
| 105 | - !!this.user_id && // 确保用户已登录 | ||
| 106 | this.switchOpen && // 国殇模式总开关开启 | 105 | this.switchOpen && // 国殇模式总开关开启 |
| 107 | this.bottomNavOpen && // 底部导航国殇模式开关开启 | 106 | this.bottomNavOpen && // 底部导航国殇模式开关开启 |
| 108 | ( | 107 | ( |
| @@ -115,7 +114,7 @@ export class GrayManageModel { | @@ -115,7 +114,7 @@ export class GrayManageModel { | ||
| 115 | // 国殇模式开启 新闻频道国殇模式开启 一键全选: true-全选, false-非全选 | 114 | // 国殇模式开启 新闻频道国殇模式开启 一键全选: true-全选, false-非全选 |
| 116 | public isNewsMourning(channelId: string): boolean { | 115 | public isNewsMourning(channelId: string): boolean { |
| 117 | // 检查最基本的前提条件 | 116 | // 检查最基本的前提条件 |
| 118 | - if (!this.user_id || !this.switchOpen) { | 117 | + if (!this.switchOpen) { |
| 119 | return false; | 118 | return false; |
| 120 | } | 119 | } |
| 121 | 120 | ||
| @@ -132,7 +131,7 @@ export class GrayManageModel { | @@ -132,7 +131,7 @@ export class GrayManageModel { | ||
| 132 | // 国殇模式开启 人民号频道国殇模式开启 一键全选: true-全选, false-非全选 | 131 | // 国殇模式开启 人民号频道国殇模式开启 一键全选: true-全选, false-非全选 |
| 133 | public isRmhMourning(channelId: string): boolean { | 132 | public isRmhMourning(channelId: string): boolean { |
| 134 | // 检查最基本的前提条件 | 133 | // 检查最基本的前提条件 |
| 135 | - if (!this.user_id || !this.switchOpen) { | 134 | + if (!this.switchOpen) { |
| 136 | return false; | 135 | return false; |
| 137 | } | 136 | } |
| 138 | 137 | ||
| @@ -149,7 +148,7 @@ export class GrayManageModel { | @@ -149,7 +148,7 @@ export class GrayManageModel { | ||
| 149 | // 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选 | 148 | // 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选 |
| 150 | public isVideoMourning(channelId: string): boolean { | 149 | public isVideoMourning(channelId: string): boolean { |
| 151 | // 检查最基本的前提条件 | 150 | // 检查最基本的前提条件 |
| 152 | - if (!this.user_id || !this.switchOpen) { | 151 | + if (!this.switchOpen) { |
| 153 | return false; | 152 | return false; |
| 154 | } | 153 | } |
| 155 | 154 | ||
| @@ -165,7 +164,7 @@ export class GrayManageModel { | @@ -165,7 +164,7 @@ export class GrayManageModel { | ||
| 165 | // 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选 | 164 | // 国殇模式开启 视频频道频道国殇模式开启 一键全选: true-全选, false-非全选 |
| 166 | public isServerMourning(channelId: string): boolean { | 165 | public isServerMourning(channelId: string): boolean { |
| 167 | // 检查最基本的前提条件 | 166 | // 检查最基本的前提条件 |
| 168 | - if (!this.user_id || !this.switchOpen) { | 167 | + if (!this.switchOpen) { |
| 169 | return false; | 168 | return false; |
| 170 | } | 169 | } |
| 171 | 170 |
-
Please register or login to post a comment