Commit 79f2ee21e997f8737f952aff290583c8fa00475f
Merge branch 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveBPersonalVerificationModule
Showing
5 changed files
with
31 additions
and
13 deletions
CNLiveBPersonalVerificationModule.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveBPersonalVerificationModule' | 10 | s.name = 'CNLiveBPersonalVerificationModule' |
| 11 | - s.version = '0.0.5' | 11 | + s.version = '0.0.6' |
| 12 | s.summary = 'B端个人资料认证开发' | 12 | s.summary = 'B端个人资料认证开发' |
| 13 | 13 | ||
| 14 | 14 | ||
| @@ -64,7 +64,7 @@ s.subspec 'CNBInstitutionInfo' do |institution| | @@ -64,7 +64,7 @@ s.subspec 'CNBInstitutionInfo' do |institution| | ||
| 64 | institution.dependency 'CNLiveRequestBastKit' | 64 | institution.dependency 'CNLiveRequestBastKit' |
| 65 | # #环境库 | 65 | # #环境库 |
| 66 | institution.dependency 'CNLiveEnvironment' | 66 | institution.dependency 'CNLiveEnvironment' |
| 67 | - institution.dependency 'CNLiveBusinessBaseModule' | 67 | + institution.dependency 'CNLiveBusinessBaseModule' |
| 68 | # #协议库 | 68 | # #协议库 |
| 69 | institution.dependency 'CNLiveBeeHive' | 69 | institution.dependency 'CNLiveBeeHive' |
| 70 | institution.dependency 'CNLiveBServices' | 70 | institution.dependency 'CNLiveBServices' |
| @@ -75,7 +75,6 @@ s.subspec 'CNBInstitutionInfo' do |institution| | @@ -75,7 +75,6 @@ s.subspec 'CNBInstitutionInfo' do |institution| | ||
| 75 | end | 75 | end |
| 76 | 76 | ||
| 77 | s.subspec 'CNBPersonCardInfo' do |card| | 77 | s.subspec 'CNBPersonCardInfo' do |card| |
| 78 | -# card.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/**' | ||
| 79 | card.subspec 'Model' do |model| | 78 | card.subspec 'Model' do |model| |
| 80 | model.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Model/*.{h,m}' | 79 | model.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Model/*.{h,m}' |
| 81 | end | 80 | end |
| @@ -93,7 +92,7 @@ s.subspec 'CNBPersonCardInfo' do |card| | @@ -93,7 +92,7 @@ s.subspec 'CNBPersonCardInfo' do |card| | ||
| 93 | card.subspec 'Services' do |service| | 92 | card.subspec 'Services' do |service| |
| 94 | service.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Services/*.{h,m}' | 93 | service.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Services/*.{h,m}' |
| 95 | service.dependency 'CNLiveBPersonalVerificationModule/CNBPersonCardInfo/Controller' | 94 | service.dependency 'CNLiveBPersonalVerificationModule/CNBPersonCardInfo/Controller' |
| 96 | - | 95 | + |
| 97 | end | 96 | end |
| 98 | # card.ios.vendored_frameworks = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipOcrSdk.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipBase.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/IdcardQuality.framework' | 97 | # card.ios.vendored_frameworks = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipOcrSdk.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipBase.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/IdcardQuality.framework' |
| 99 | card.resource_bundles = { | 98 | card.resource_bundles = { |
| @@ -115,9 +114,9 @@ s.subspec 'CNBPersonCardInfo' do |card| | @@ -115,9 +114,9 @@ s.subspec 'CNBPersonCardInfo' do |card| | ||
| 115 | ##相册 | 114 | ##相册 |
| 116 | card.dependency 'CNLiveImagePickerController' | 115 | card.dependency 'CNLiveImagePickerController' |
| 117 | # #网络请求 | 116 | # #网络请求 |
| 118 | - card.dependency 'CNLiveRequestBastKit' | ||
| 119 | - card.dependency 'CNLiveEnvironment' | ||
| 120 | - card.dependency 'CNLiveBusinessTools' | 117 | + card.dependency 'CNLiveRequestBastKit' |
| 118 | + card.dependency 'CNLiveEnvironment' | ||
| 119 | + card.dependency 'CNLiveBusinessTools' | ||
| 121 | card.dependency 'CNLiveBeeHive' | 120 | card.dependency 'CNLiveBeeHive' |
| 122 | card.dependency 'CNLiveBServices' | 121 | card.dependency 'CNLiveBServices' |
| 123 | end | 122 | end |
CNLiveBPersonalVerificationModule/Classes/CNBInstitutionInfo/Controller/CNBPerCertificationController.m
| @@ -10,6 +10,8 @@ | @@ -10,6 +10,8 @@ | ||
| 10 | #import <Masonry/Masonry.h> | 10 | #import <Masonry/Masonry.h> |
| 11 | #import "CNLiveBaseKit.h" | 11 | #import "CNLiveBaseKit.h" |
| 12 | #import "UIColor+CNLiveExtension.h" | 12 | #import "UIColor+CNLiveExtension.h" |
| 13 | +#import "CNLiveIDCardAuthenProtocol.h" | ||
| 14 | +#import <CNLiveBeeHive/CNLiveBeeHive.h> | ||
| 13 | @interface CNBPerCertificationController () | 15 | @interface CNBPerCertificationController () |
| 14 | @property (nonatomic, copy) NSString *type; | 16 | @property (nonatomic, copy) NSString *type; |
| 15 | @property (nonatomic, strong) UIImageView *showImageV; | 17 | @property (nonatomic, strong) UIImageView *showImageV; |
| @@ -76,7 +78,16 @@ | @@ -76,7 +78,16 @@ | ||
| 76 | } | 78 | } |
| 77 | #pragma mark - Action | 79 | #pragma mark - Action |
| 78 | - (void)sureBtnAction { | 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 | #pragma mark - lazy | 92 | #pragma mark - lazy |
| 82 | - (UIImageView *)showImageV { | 93 | - (UIImageView *)showImageV { |
CNLiveBPersonalVerificationModule/Classes/CNBInstitutionInfo/Services/CNBPersonAuthenticationServices.m
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | #import "CNLiveBPersonAuthentProtocol.h" | 10 | #import "CNLiveBPersonAuthentProtocol.h" |
| 11 | #import "CNBPerAuthSuccessController.h" | 11 | #import "CNBPerAuthSuccessController.h" |
| 12 | #import "CNBPerCertificationController.h" | 12 | #import "CNBPerCertificationController.h" |
| 13 | +#import "CNBPersonalVerificationController.h" | ||
| 13 | @interface CNBPersonAuthenticationServices ()<CNLiveBPersonAuthentProtocol> | 14 | @interface CNBPersonAuthenticationServices ()<CNLiveBPersonAuthentProtocol> |
| 14 | 15 | ||
| 15 | @end | 16 | @end |
| @@ -26,4 +27,9 @@ | @@ -26,4 +27,9 @@ | ||
| 26 | CNBPerCertificationController *vc = [[CNBPerCertificationController alloc]initControllerWithCertificatType:dic]; | 27 | CNBPerCertificationController *vc = [[CNBPerCertificationController alloc]initControllerWithCertificatType:dic]; |
| 27 | return vc; | 28 | return vc; |
| 28 | } | 29 | } |
| 30 | +#pragma mark -跳到资料认证页面 | ||
| 31 | +- (UIViewController *)pushToAddPerAuthInstitutionsController:(NSDictionary *)dic { | ||
| 32 | + CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | ||
| 33 | + return vc; | ||
| 34 | +} | ||
| 29 | @end | 35 | @end |
CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Controller/ApplyForShootController.m
| @@ -29,7 +29,6 @@ | @@ -29,7 +29,6 @@ | ||
| 29 | #import <CNLiveImagePickerController/TZImagePickerController.h> | 29 | #import <CNLiveImagePickerController/TZImagePickerController.h> |
| 30 | #import <CNLiveImagePickerController/TZImageManager.h> | 30 | #import <CNLiveImagePickerController/TZImageManager.h> |
| 31 | #import <CNLiveCommonCategory/CNLiveCommonCategory.h> | 31 | #import <CNLiveCommonCategory/CNLiveCommonCategory.h> |
| 32 | - | ||
| 33 | @interface ApplyForShootController ()<UIAlertViewDelegate,UITableViewDelegate,UITableViewDataSource,UINavigationControllerDelegate, UIImagePickerControllerDelegate> | 32 | @interface ApplyForShootController ()<UIAlertViewDelegate,UITableViewDelegate,UITableViewDataSource,UINavigationControllerDelegate, UIImagePickerControllerDelegate> |
| 34 | 33 | ||
| 35 | @property (nonatomic, strong) UITableView *tableView; | 34 | @property (nonatomic, strong) UITableView *tableView; |
| @@ -547,6 +546,9 @@ | @@ -547,6 +546,9 @@ | ||
| 547 | //成功 | 546 | //成功 |
| 548 | CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | 547 | CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; |
| 549 | [self.navigationController pushViewController:vc animated:NO]; | 548 | [self.navigationController pushViewController:vc animated:NO]; |
| 549 | +// id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; | ||
| 550 | +// CNBPersonalVerificationController *vc = (CNBPersonalVerificationController *)[service pushToAddPerAuthInstitutionsController:@{}]; | ||
| 551 | +// [self.navigationController pushViewController:vc animated:YES]; | ||
| 550 | 552 | ||
| 551 | } else {//接口失败 | 553 | } else {//接口失败 |
| 552 | 554 |
Example/CNLiveBPersonalVerificationModule/CNLIVEViewController.m
| @@ -12,6 +12,7 @@ | @@ -12,6 +12,7 @@ | ||
| 12 | #import "CNBPerCertificationController.h" | 12 | #import "CNBPerCertificationController.h" |
| 13 | #import "CNLiveBPersonAuthentProtocol.h" | 13 | #import "CNLiveBPersonAuthentProtocol.h" |
| 14 | #import "ApplyForShootController.h" | 14 | #import "ApplyForShootController.h" |
| 15 | +#import "CNLiveIDCardAuthenProtocol.h" | ||
| 15 | @interface CNLIVEViewController () | 16 | @interface CNLIVEViewController () |
| 16 | 17 | ||
| 17 | @end | 18 | @end |
| @@ -44,11 +45,10 @@ | @@ -44,11 +45,10 @@ | ||
| 44 | - (void)buttonAction { | 45 | - (void)buttonAction { |
| 45 | // ApplyForShootController *vc = [[ApplyForShootController alloc] init]; | 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 | [self.navigationController pushViewController:vc animated:NO]; | 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 | - (void)successBtnAction { | 53 | - (void)successBtnAction { |
| 54 | id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; | 54 | id <CNLiveBPersonAuthentProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNLiveBPersonAuthentProtocol)]; |