创建邀请卡
- (void)getInvitationCard:(void (^__nullable)(NSInteger code ,TFInvitationCard*_Nullable model ,TFError *_Nullable error))callback
示例
__weak typeof(self) weakSelf = self;
[self.livingSDK getInvitationCard:^(NSInteger code, TFInvitationCard * _Nullable model, TFError * _Nullable error) {
if( code == 0 )
{
skinModel *new_model = [[skinModel alloc]init];
//选择第1个
new_model.state = 1;
//用户头像
new_model.avatar = model.avatar;
//用户名字
new_model.nickname = model.nickname;
//课程二维码
new_model.qrcodeUrl = model.qrcodeUrl;
//宣传内容
new_model.descriptionMsg = model.descriptionMsg;
//直播开始时间
new_model.startingTime = model.course.start_time;
//举办方
new_model.company = model.zhubo.nickname;
//标题
new_model.title = model.title;
//导航栏
new_model.isShowNavigationBar = true;
[weakSelf.inviteView setCurrent:new_model ViewController:weakSelf];
}else
{
[weakSelf.view toast:error.msg position:ToastPosition];
}
}];