1、聚合搜索关注
This commit is contained in:
parent
6fce441275
commit
7c5d51157a
@ -273,12 +273,12 @@ class _SearchResultPageState extends State<SearchResultPage> with SingleTickerPr
|
|||||||
final doIFollowVloger = user['doIFollowVloger'];
|
final doIFollowVloger = user['doIFollowVloger'];
|
||||||
print('是否关注此用户------------->$doIFollowVloger');
|
print('是否关注此用户------------->$doIFollowVloger');
|
||||||
print('此用户UserId------------->$vlogerId');
|
print('此用户UserId------------->$vlogerId');
|
||||||
if (doIFollowVloger == false) {
|
if (doIFollowVloger == false || doIFollowVloger == null) {
|
||||||
final res = await ImService.instance.followUser(userIDList: [vlogerId]);
|
final res = await ImService.instance.followUser(userIDList: [vlogerId]);
|
||||||
print('关注结果------------->${res.success}');
|
print('关注结果------------->${res.success}');
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_userResults[index]['doIFollowVloger'] = !_userResults[index]['doIFollowVloger'];
|
_userResults[index]['doIFollowVloger'] = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -286,7 +286,7 @@ class _SearchResultPageState extends State<SearchResultPage> with SingleTickerPr
|
|||||||
print('取消关注结果------------->${res.success}');
|
print('取消关注结果------------->${res.success}');
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_userResults[index]['doIFollowVloger'] = !_userResults[index]['doIFollowVloger'];
|
_userResults[index]['doIFollowVloger'] = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -679,7 +679,7 @@ class _RecommendModuleState extends State<RecommendModule> {
|
|||||||
if (data == null || (data is List && data.isEmpty)) {
|
if (data == null || (data is List && data.isEmpty)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
print('推荐视频列表------------------>${data['records']}');
|
||||||
if (data['records'] is List) {
|
if (data['records'] is List) {
|
||||||
List videos = data['records'];
|
List videos = data['records'];
|
||||||
for (var item in videos) {
|
for (var item in videos) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user