fix: mobiApp

This commit is contained in:
bggRGjQaUbCoE
2024-10-10 21:25:58 +08:00
parent 6f86fe75ae
commit 137e4e6495
2 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import 'package:PiliPalaX/grpc/app/card/v1/card.pb.dart' as card;
import 'package:PiliPalaX/utils/app_scheme.dart';
import 'package:PiliPalaX/utils/id_utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
@@ -68,11 +69,12 @@ class VideoCardHGrpc extends StatelessWidget {
return;
}
try {
final int cid =
videoItem.smallCoverV5.base.playerArgs.cid.toInt() ??
await SearchHttp.ab2c(aid: aid, bvid: bvid);
Get.toNamed('/video?bvid=$bvid&cid=$cid',
arguments: {'heroTag': heroTag});
PiliScheme.routePush(Uri.parse(videoItem.smallCoverV5.base.uri));
// final int cid =
// videoItem.smallCoverV5.base.playerArgs.cid.toInt() ??
// await SearchHttp.ab2c(aid: aid, bvid: bvid);
// Get.toNamed('/video?bvid=$bvid&cid=$cid',
// arguments: {'heroTag': heroTag});
// Get.toNamed('/video?bvid=$bvid&cid=$cid',
// arguments: {'videoItem': videoItem, 'heroTag': heroTag});
} catch (err) {

View File

@@ -23,7 +23,7 @@ class GrpcRepo {
.get(LocalCacheKey.accessKey, defaultValue: {})['value'];
static const _build = 1462100;
static const _biliChannel = 'bili';
static const _mobiApp = 'android';
static const _mobiApp = 'android_hd';
static const _phone = 'phone';
static final _eId = _isLogin ? Utils.genAuroraEid(_mid!) : '';