Commit f9dcc0c51b45252e7928db5b394ca99cdf31942e
1 parent
7bcb7dd0
no message
Showing
2 changed files
with
17 additions
and
17 deletions
CNLiveUserAgreementManager/Classes/CNLiveUserAgreementManager.m
| @@ -67,7 +67,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -67,7 +67,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 67 | for (NSDictionary *dic in responseObject) { | 67 | for (NSDictionary *dic in responseObject) { |
| 68 | 68 | ||
| 69 | switch (type) { | 69 | switch (type) { |
| 70 | - caseCNLiveUserAgreementUser: | 70 | + case CNLiveUserAgreementUser: |
| 71 | { | 71 | { |
| 72 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yhxy"]) { | 72 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yhxy"]) { |
| 73 | if (success) { | 73 | if (success) { |
| @@ -77,7 +77,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -77,7 +77,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | break; | 79 | break; |
| 80 | - caseCNLiveUserAgreementPrivacy: | 80 | + case CNLiveUserAgreementPrivacy: |
| 81 | { | 81 | { |
| 82 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yszc"]) { | 82 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"yszc"]) { |
| 83 | if (success) { | 83 | if (success) { |
| @@ -87,7 +87,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -87,7 +87,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 87 | } | 87 | } |
| 88 | } | 88 | } |
| 89 | break; | 89 | break; |
| 90 | - caseCNLiveUserAgreementHelp: | 90 | + case CNLiveUserAgreementHelp: |
| 91 | { | 91 | { |
| 92 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"bzfk"]) { | 92 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"bzfk"]) { |
| 93 | if (success) { | 93 | if (success) { |
| @@ -97,7 +97,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -97,7 +97,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 97 | } | 97 | } |
| 98 | } | 98 | } |
| 99 | break; | 99 | break; |
| 100 | - caseCNLiveUserAgreementUnderstand: | 100 | + case CNLiveUserAgreementUnderstand: |
| 101 | { | 101 | { |
| 102 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"ljwjj"]) { | 102 | if ([[NSString stringWithFormat:@"%@",dic[@"type"]] isEqualToString:@"ljwjj"]) { |
| 103 | if (success) { | 103 | if (success) { |
| @@ -107,7 +107,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -107,7 +107,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 107 | } | 107 | } |
| 108 | } | 108 | } |
| 109 | break; | 109 | break; |
| 110 | - caseCNLiveUserAgreementIntroduction: | 110 | + case CNLiveUserAgreementIntroduction: |
| 111 | { | 111 | { |
| 112 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"yyjj"]) { | 112 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"yyjj"]) { |
| 113 | if (success) { | 113 | if (success) { |
| @@ -117,7 +117,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -117,7 +117,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 117 | } | 117 | } |
| 118 | } | 118 | } |
| 119 | break; | 119 | break; |
| 120 | - caseCNLiveUserAgreementCopyright: | 120 | + case CNLiveUserAgreementCopyright: |
| 121 | { | 121 | { |
| 122 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"bqxx"]) { | 122 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"bqxx"]) { |
| 123 | if (success) { | 123 | if (success) { |
| @@ -127,7 +127,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -127,7 +127,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 127 | } | 127 | } |
| 128 | } | 128 | } |
| 129 | break; | 129 | break; |
| 130 | - caseCNLiveUserAgreementPermission: | 130 | + case CNLiveUserAgreementPermission: |
| 131 | { | 131 | { |
| 132 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"rjxkxy"]) { | 132 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"rjxkxy"]) { |
| 133 | if (success) { | 133 | if (success) { |
| @@ -137,7 +137,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -137,7 +137,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 137 | } | 137 | } |
| 138 | } | 138 | } |
| 139 | break; | 139 | break; |
| 140 | - caseCNLiveUserAgreementIntegralRules: | 140 | + case CNLiveUserAgreementIntegralRules: |
| 141 | { | 141 | { |
| 142 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"jfgz"]) { | 142 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"jfgz"]) { |
| 143 | if (success) { | 143 | if (success) { |
| @@ -147,7 +147,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -147,7 +147,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 147 | } | 147 | } |
| 148 | } | 148 | } |
| 149 | break; | 149 | break; |
| 150 | - caseCNLiveUserAgreementSigninRules: | 150 | + case CNLiveUserAgreementSigninRules: |
| 151 | { | 151 | { |
| 152 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"jfjlgz"]) { | 152 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"jfjlgz"]) { |
| 153 | if (success) { | 153 | if (success) { |
| @@ -157,7 +157,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -157,7 +157,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| 159 | break; | 159 | break; |
| 160 | - caseCNLiveUserAgreementReviewApply: | 160 | + case CNLiveUserAgreementReviewApply: |
| 161 | { | 161 | { |
| 162 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"shsqxy"]) { | 162 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"shsqxy"]) { |
| 163 | if (success) { | 163 | if (success) { |
| @@ -167,7 +167,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -167,7 +167,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| 169 | break; | 169 | break; |
| 170 | - caseCNLiveUserAgreementCancellation: | 170 | + case CNLiveUserAgreementCancellation: |
| 171 | { | 171 | { |
| 172 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zxxz"]) { | 172 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"zxxz"]) { |
| 173 | if (success) { | 173 | if (success) { |
| @@ -177,7 +177,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -177,7 +177,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | break; | 179 | break; |
| 180 | - caseCNLiveUserAgreementEmojiService: | 180 | + case CNLiveUserAgreementEmojiService: |
| 181 | { | 181 | { |
| 182 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"fwsm"]) { | 182 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"fwsm"]) { |
| 183 | if (success) { | 183 | if (success) { |
| @@ -187,7 +187,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -187,7 +187,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 187 | } | 187 | } |
| 188 | } | 188 | } |
| 189 | break; | 189 | break; |
| 190 | - caseCNLiveUserAgreementEmojiComplaints: | 190 | + case CNLiveUserAgreementEmojiComplaints: |
| 191 | { | 191 | { |
| 192 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"tssm"]) { | 192 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"tssm"]) { |
| 193 | if (success) { | 193 | if (success) { |
| @@ -197,7 +197,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -197,7 +197,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 197 | } | 197 | } |
| 198 | } | 198 | } |
| 199 | break; | 199 | break; |
| 200 | - caseCNLiveUserAgreementEnterpriseQualification: | 200 | + case CNLiveUserAgreementEnterpriseQualification: |
| 201 | { | 201 | { |
| 202 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"qyzz"]) { | 202 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"qyzz"]) { |
| 203 | if (success) { | 203 | if (success) { |
| @@ -207,7 +207,7 @@ static CNLiveUserAgreementManager *_instance = nil; | @@ -207,7 +207,7 @@ static CNLiveUserAgreementManager *_instance = nil; | ||
| 207 | } | 207 | } |
| 208 | } | 208 | } |
| 209 | break; | 209 | break; |
| 210 | - caseCNLiveUserAgreementBuyAudio: | 210 | + case CNLiveUserAgreementBuyAudio: |
| 211 | { | 211 | { |
| 212 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"ypxy"]) { | 212 | if ([[NSString stringWithFormat:@"%@", dic[@"type"]] isEqualToString:@"ypxy"]) { |
| 213 | if (success) { | 213 | if (success) { |
Example/CNLiveUserAgreementManager/CNLiveViewController.m
| @@ -33,8 +33,8 @@ | @@ -33,8 +33,8 @@ | ||
| 33 | 33 | ||
| 34 | } | 34 | } |
| 35 | - (void)testButtonClicked { | 35 | - (void)testButtonClicked { |
| 36 | -// [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementHelp]; | ||
| 37 | - [CNLiveUserAgreementManager jumpToAgreementH5WithString:@"yhxy"]; | 36 | + [CNLiveUserAgreementManager jumpToAgreementH5WithType:CNLiveUserAgreementCancellation]; |
| 37 | +// [CNLiveUserAgreementManager jumpToAgreementH5WithString:@"yhxy"]; | ||
| 38 | 38 | ||
| 39 | } | 39 | } |
| 40 | 40 |