Commit 9646dd75acfab1d8f7fd68896333c397123d66db
1 parent
749b4d90
0.0.6
Showing
5 changed files
with
31 additions
and
13 deletions
CNLiveBPersonalVerificationModule.podspec
| ... | ... | @@ -8,7 +8,7 @@ |
| 8 | 8 | |
| 9 | 9 | Pod::Spec.new do |s| |
| 10 | 10 | s.name = 'CNLiveBPersonalVerificationModule' |
| 11 | - s.version = '0.0.4' | |
| 11 | + s.version = '0.0.6' | |
| 12 | 12 | s.summary = 'B端个人资料认证开发' |
| 13 | 13 | |
| 14 | 14 | # This description is used to generate tags and improve search results. |
| ... | ... | @@ -69,7 +69,7 @@ s.subspec 'CNBInstitutionInfo' do |institution| |
| 69 | 69 | institution.dependency 'CNLiveRequestBastKit' |
| 70 | 70 | # #环境库 |
| 71 | 71 | institution.dependency 'CNLiveEnvironment' |
| 72 | - institution.dependency 'CNLiveBusinessBaseModule' | |
| 72 | + institution.dependency 'CNLiveBusinessBaseModule' | |
| 73 | 73 | # #协议库 |
| 74 | 74 | institution.dependency 'CNLiveBeeHive' |
| 75 | 75 | institution.dependency 'CNLiveBServices' |
| ... | ... | @@ -80,7 +80,6 @@ s.subspec 'CNBInstitutionInfo' do |institution| |
| 80 | 80 | end |
| 81 | 81 | |
| 82 | 82 | s.subspec 'CNBPersonCardInfo' do |card| |
| 83 | -# card.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/**' | |
| 84 | 83 | card.subspec 'Model' do |model| |
| 85 | 84 | model.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Model/*.{h,m}' |
| 86 | 85 | end |
| ... | ... | @@ -95,7 +94,7 @@ s.subspec 'CNBPersonCardInfo' do |card| |
| 95 | 94 | card.subspec 'Services' do |service| |
| 96 | 95 | service.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Services/*.{h,m}' |
| 97 | 96 | service.dependency 'CNLiveBPersonalVerificationModule/CNBPersonCardInfo/Controller' |
| 98 | - | |
| 97 | + | |
| 99 | 98 | end |
| 100 | 99 | card.ios.vendored_frameworks = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipOcrSdk.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipBase.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/IdcardQuality.framework' |
| 101 | 100 | card.resource_bundles = { |
| ... | ... | @@ -117,9 +116,9 @@ s.subspec 'CNBPersonCardInfo' do |card| |
| 117 | 116 | ##相册 |
| 118 | 117 | card.dependency 'CNLiveImagePickerController' |
| 119 | 118 | # #网络请求 |
| 120 | - card.dependency 'CNLiveRequestBastKit' | |
| 121 | - card.dependency 'CNLiveEnvironment' | |
| 122 | - card.dependency 'CNLiveBusinessTools' | |
| 119 | + card.dependency 'CNLiveRequestBastKit' | |
| 120 | + card.dependency 'CNLiveEnvironment' | |
| 121 | + card.dependency 'CNLiveBusinessTools' | |
| 123 | 122 | card.dependency 'CNLiveBeeHive' |
| 124 | 123 | card.dependency 'CNLiveBServices' |
| 125 | 124 | end | ... | ... |
CNLiveBPersonalVerificationModule/Classes/CNBInstitutionInfo/Controller/CNBPerCertificationController.m
| ... | ... | @@ -10,6 +10,8 @@ |
| 10 | 10 | #import <Masonry/Masonry.h> |
| 11 | 11 | #import "CNLiveBaseKit.h" |
| 12 | 12 | #import "UIColor+CNLiveExtension.h" |
| 13 | +#import "CNLiveIDCardAuthenProtocol.h" | |
| 14 | +#import <CNLiveBeeHive/CNLiveBeeHive.h> | |
| 13 | 15 | @interface CNBPerCertificationController () |
| 14 | 16 | @property (nonatomic, copy) NSString *type; |
| 15 | 17 | @property (nonatomic, strong) UIImageView *showImageV; |
| ... | ... | @@ -76,7 +78,16 @@ |
| 76 | 78 | } |
| 77 | 79 | #pragma mark - Action |
| 78 | 80 | - (void)sureBtnAction { |
| 79 | - [self.navigationController popToRootViewControllerAnimated:YES]; | |
| 81 | + if ([self.type isEqualToString:@"2"] ) { //未通过 | |
| 82 | + [self.navigationController popToRootViewControllerAnimated:YES]; | |
| 83 | + }else { | |
| 84 | +// ApplyForShootController *vc = [[ApplyForShootController alloc]init]; | |
| 85 | +// [self.navigationController pushViewController:vc animated:YES]; | |
| 86 | + id <CNLiveIDCardAuthenProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveIDCardAuthenProtocol)]; | |
| 87 | + UIViewController *vc = [service pushToCNLiveIDCardAuthController]; | |
| 88 | + [self.navigationController pushViewController:vc animated:YES]; | |
| 89 | + } | |
| 90 | + | |
| 80 | 91 | } |
| 81 | 92 | #pragma mark - lazy |
| 82 | 93 | - (UIImageView *)showImageV { | ... | ... |
CNLiveBPersonalVerificationModule/Classes/CNBInstitutionInfo/Services/CNBPersonAuthenticationServices.m
| ... | ... | @@ -10,6 +10,7 @@ |
| 10 | 10 | #import "CNLiveBPersonAuthentProtocol.h" |
| 11 | 11 | #import "CNBPerAuthSuccessController.h" |
| 12 | 12 | #import "CNBPerCertificationController.h" |
| 13 | +#import "CNBPersonalVerificationController.h" | |
| 13 | 14 | @interface CNBPersonAuthenticationServices ()<CNLiveBPersonAuthentProtocol> |
| 14 | 15 | |
| 15 | 16 | @end |
| ... | ... | @@ -26,4 +27,9 @@ |
| 26 | 27 | CNBPerCertificationController *vc = [[CNBPerCertificationController alloc]initControllerWithCertificatType:dic]; |
| 27 | 28 | return vc; |
| 28 | 29 | } |
| 30 | +#pragma mark -跳到资料认证页面 | |
| 31 | +- (UIViewController *)pushToAddPerAuthInstitutionsController:(NSDictionary *)dic { | |
| 32 | + CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | |
| 33 | + return vc; | |
| 34 | +} | |
| 29 | 35 | @end | ... | ... |
CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Controller/ApplyForShootController.m
| ... | ... | @@ -29,7 +29,6 @@ |
| 29 | 29 | #import <CNLiveImagePickerController/TZImagePickerController.h> |
| 30 | 30 | #import <CNLiveImagePickerController/TZImageManager.h> |
| 31 | 31 | #import <CNLiveCommonCategory/CNLiveCommonCategory.h> |
| 32 | - | |
| 33 | 32 | @interface ApplyForShootController ()<UIAlertViewDelegate,UITableViewDelegate,UITableViewDataSource,UINavigationControllerDelegate, UIImagePickerControllerDelegate> |
| 34 | 33 | |
| 35 | 34 | @property (nonatomic, strong) UITableView *tableView; |
| ... | ... | @@ -544,6 +543,9 @@ |
| 544 | 543 | //成功 |
| 545 | 544 | CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; |
| 546 | 545 | [self.navigationController pushViewController:vc animated:NO]; |
| 546 | +// id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; | |
| 547 | +// CNBPersonalVerificationController *vc = (CNBPersonalVerificationController *)[service pushToAddPerAuthInstitutionsController:@{}]; | |
| 548 | +// [self.navigationController pushViewController:vc animated:YES]; | |
| 547 | 549 | |
| 548 | 550 | } else {//接口失败 |
| 549 | 551 | ... | ... |
Example/CNLiveBPersonalVerificationModule/CNLIVEViewController.m
| ... | ... | @@ -12,6 +12,7 @@ |
| 12 | 12 | #import "CNBPerCertificationController.h" |
| 13 | 13 | #import "CNLiveBPersonAuthentProtocol.h" |
| 14 | 14 | #import "ApplyForShootController.h" |
| 15 | +#import "CNLiveIDCardAuthenProtocol.h" | |
| 15 | 16 | @interface CNLIVEViewController () |
| 16 | 17 | |
| 17 | 18 | @end |
| ... | ... | @@ -44,11 +45,10 @@ |
| 44 | 45 | - (void)buttonAction { |
| 45 | 46 | // ApplyForShootController *vc = [[ApplyForShootController alloc] init]; |
| 46 | 47 | |
| 47 | - CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | |
| 48 | + id <CNLiveIDCardAuthenProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveIDCardAuthenProtocol)]; | |
| 49 | + ApplyForShootController *vc = (ApplyForShootController *)[service pushToCNLiveIDCardAuthController]; | |
| 50 | +// CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | |
| 48 | 51 | [self.navigationController pushViewController:vc animated:NO]; |
| 49 | -// id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; | |
| 50 | -// CNBPersonalVerificationController *vc = (CNBPersonalVerificationController *)[service pushToAddPerAuthInstitutionsController:@{}]; | |
| 51 | -// [self.navigationController pushViewController:vc animated:NO]; | |
| 52 | 52 | } |
| 53 | 53 | - (void)successBtnAction { |
| 54 | 54 | id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; | ... | ... |