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