推荐视频评论和点赞
This commit is contained in:
parent
6cec14448c
commit
212fdea5a0
@ -663,9 +663,7 @@ Future<void> fetchComments(int videoId, {bool loadMore = false}) async {
|
||||
});
|
||||
final resCode = res['code'];
|
||||
if (resCode == 200) {
|
||||
setState(() {
|
||||
item['doILikeThisVlog'] = !item['doILikeThisVlog'];
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
logger.i('点击取消喜欢按钮报错: $e');
|
||||
@ -680,9 +678,7 @@ Future<void> fetchComments(int videoId, {bool loadMore = false}) async {
|
||||
});
|
||||
final resCode = res['code'];
|
||||
if (resCode == 200) {
|
||||
setState(() {
|
||||
item['doILikeThisVlog'] = !item['doILikeThisVlog'];
|
||||
});
|
||||
}
|
||||
logger.i('点赞返回信息----------->: $res');
|
||||
} catch (e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user