mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
fix: intro: check mid
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -176,6 +176,9 @@ class VideoIntroController extends GetxController
|
|||||||
|
|
||||||
// 获取up主粉丝数
|
// 获取up主粉丝数
|
||||||
Future queryUserStat() async {
|
Future queryUserStat() async {
|
||||||
|
if (videoDetail.value.owner == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var result = await UserHttp.userStat(mid: videoDetail.value.owner!.mid!);
|
var result = await UserHttp.userStat(mid: videoDetail.value.owner!.mid!);
|
||||||
if (result['status']) {
|
if (result['status']) {
|
||||||
userStat.value = result['data'];
|
userStat.value = result['data'];
|
||||||
@@ -766,6 +769,9 @@ class VideoIntroController extends GetxController
|
|||||||
|
|
||||||
// 设置关注分组
|
// 设置关注分组
|
||||||
void setFollowGroup() {
|
void setFollowGroup() {
|
||||||
|
if (videoDetail.value.owner == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Get.bottomSheet(
|
Get.bottomSheet(
|
||||||
GroupPanel(mid: videoDetail.value.owner!.mid!),
|
GroupPanel(mid: videoDetail.value.owner!.mid!),
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user