mod: 请求参数结构、评论页面初始化

This commit is contained in:
guozhigq
2023-04-21 21:44:51 +08:00
parent 3aee691d00
commit ebbb0b86a2
13 changed files with 98 additions and 26 deletions

View File

@ -19,10 +19,10 @@ class HotController extends GetxController {
// 获取推荐
Future queryHotFeed(type) async {
var res = await VideoHttp.hotVideoList({
'pn': _currentPage,
'ps': _count,
});
var res = await VideoHttp.hotVideoList(
pn: _currentPage,
ps: _count,
);
if (res['status']) {
if (type == 'init') {
videoList.value = res['data'];