|
|
@@ -231,21 +231,15 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- NSMutableArray *arr = [NSMutableArray array];
|
|
|
- [arr addObject:self.anchorId];
|
|
|
- NSDictionary *dict = @{@"type":@"1",
|
|
|
- @"target":arr,
|
|
|
- @"roomId":self.roomId,
|
|
|
- };
|
|
|
-
|
|
|
- WEAKSELF
|
|
|
- [kHttpManager toSubmitForFollowWithParams:dict andBlock:^(id _Nonnull data, NSError * _Nonnull error) {
|
|
|
- if(kCode_Success){
|
|
|
- NSLog(@"follow success");
|
|
|
- } else {
|
|
|
- kShowNetError(data)
|
|
|
- }
|
|
|
- }];
|
|
|
+ SendNotification(@"kNotification_Follow")
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void)setAnchorId:(NSString *)anchorId {
|
|
|
+ _anchorId = [anchorId copy];
|
|
|
+
|
|
|
+ if ([anchorId isEqualToString:GetUserId]) {
|
|
|
+ self.followButton.alpha = 0.0;
|
|
|
}
|
|
|
}
|
|
|
|