Commit f0a721e4904897fdea55d1cad8ae7469fad650f5

Authored by iOS-Xiaowen
1 parent 1dd9740b

no message

CNLiveBUserAgreement/Classes/CNLiveUserAgreementManager.h
@@ -21,7 +21,13 @@ typedef NS_ENUM(NSUInteger, CNLiveGetAgreementH5Type) { @@ -21,7 +21,13 @@ typedef NS_ENUM(NSUInteger, CNLiveGetAgreementH5Type) {
21 CNLiveUserAgreementQualificationInfo = 1007,//资质信息 21 CNLiveUserAgreementQualificationInfo = 1007,//资质信息
22 CNLiveUserAgreementComplaints = 1008,//投诉 22 CNLiveUserAgreementComplaints = 1008,//投诉
23 CNLiveUserAgreementReviewApply = 1009,//复核申请 23 CNLiveUserAgreementReviewApply = 1009,//复核申请
24 - CNLiveUserAgreementCancellation = 1010//注销须知 24 + CNLiveUserAgreementCancellation = 1010,//注销须知
  25 +
  26 + CNLiveUserAgreementLiveSign = 1011,//直播签约
  27 + CNLiveUserAgreementContentSecurity = 1012,//中国网家家内容安全协议
  28 + CNLiveUserAgreementLiveBroadcast = 1013,//了解更多直播方式
  29 + CNLiveUserAgreementLiveIssue = 1014,//直播常见问题
  30 + CNLiveUserAgreementCodeConduct = 1015 //主播行为规范
25 31
26 }; 32 };
27 33
CNLiveBUserAgreement/Classes/CNLiveUserAgreementManager.m
@@ -168,6 +168,56 @@ static CNLiveUserAgreementManager *_instance = nil; @@ -168,6 +168,56 @@ static CNLiveUserAgreementManager *_instance = nil;
168 } 168 }
169 } 169 }
170 break; 170 break;
  171 + case CNLiveUserAgreementLiveSign://直播签约
  172 + {
  173 + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zbqy"]) {
  174 + if (success) {
  175 + success(dic[@"detailUrl"], dic[@"title"], closeHidden);
  176 + return ;
  177 + }
  178 + }
  179 + }
  180 + break;
  181 + case CNLiveUserAgreementContentSecurity://中国网家家内容安全协议
  182 + {
  183 + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zbqy"]) {
  184 + if (success) {
  185 + success(dic[@"detailUrl"], dic[@"title"], closeHidden);
  186 + return ;
  187 + }
  188 + }
  189 + }
  190 + break;
  191 + case CNLiveUserAgreementLiveBroadcast://了解更多直播方式
  192 + {
  193 + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zbqy"]) {
  194 + if (success) {
  195 + success(dic[@"detailUrl"], dic[@"title"], closeHidden);
  196 + return ;
  197 + }
  198 + }
  199 + }
  200 + break;
  201 + case CNLiveUserAgreementLiveIssue://直播常见问题
  202 + {
  203 + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zbqy"]) {
  204 + if (success) {
  205 + success(dic[@"detailUrl"], dic[@"title"], closeHidden);
  206 + return ;
  207 + }
  208 + }
  209 + }
  210 + break;
  211 + case CNLiveUserAgreementCodeConduct://主播行为规范
  212 + {
  213 + if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zbqy"]) {
  214 + if (success) {
  215 + success(dic[@"detailUrl"], dic[@"title"], closeHidden);
  216 + return ;
  217 + }
  218 + }
  219 + }
  220 + break;
171 default: 221 default:
172 break; 222 break;
173 } 223 }