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,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.4' | 11 | + s.version = '0.0.6' |
| 12 | s.summary = 'B端个人资料认证开发' | 12 | s.summary = 'B端个人资料认证开发' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
| @@ -69,7 +69,7 @@ s.subspec 'CNBInstitutionInfo' do |institution| | @@ -69,7 +69,7 @@ s.subspec 'CNBInstitutionInfo' do |institution| | ||
| 69 | institution.dependency 'CNLiveRequestBastKit' | 69 | institution.dependency 'CNLiveRequestBastKit' |
| 70 | # #环境库 | 70 | # #环境库 |
| 71 | institution.dependency 'CNLiveEnvironment' | 71 | institution.dependency 'CNLiveEnvironment' |
| 72 | - institution.dependency 'CNLiveBusinessBaseModule' | 72 | + institution.dependency 'CNLiveBusinessBaseModule' |
| 73 | # #协议库 | 73 | # #协议库 |
| 74 | institution.dependency 'CNLiveBeeHive' | 74 | institution.dependency 'CNLiveBeeHive' |
| 75 | institution.dependency 'CNLiveBServices' | 75 | institution.dependency 'CNLiveBServices' |
| @@ -80,7 +80,6 @@ s.subspec 'CNBInstitutionInfo' do |institution| | @@ -80,7 +80,6 @@ s.subspec 'CNBInstitutionInfo' do |institution| | ||
| 80 | end | 80 | end |
| 81 | 81 | ||
| 82 | s.subspec 'CNBPersonCardInfo' do |card| | 82 | s.subspec 'CNBPersonCardInfo' do |card| |
| 83 | -# card.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/**' | ||
| 84 | card.subspec 'Model' do |model| | 83 | card.subspec 'Model' do |model| |
| 85 | model.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Model/*.{h,m}' | 84 | model.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Model/*.{h,m}' |
| 86 | end | 85 | end |
| @@ -95,7 +94,7 @@ s.subspec 'CNBPersonCardInfo' do |card| | @@ -95,7 +94,7 @@ s.subspec 'CNBPersonCardInfo' do |card| | ||
| 95 | card.subspec 'Services' do |service| | 94 | card.subspec 'Services' do |service| |
| 96 | service.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Services/*.{h,m}' | 95 | service.source_files = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/Services/*.{h,m}' |
| 97 | service.dependency 'CNLiveBPersonalVerificationModule/CNBPersonCardInfo/Controller' | 96 | service.dependency 'CNLiveBPersonalVerificationModule/CNBPersonCardInfo/Controller' |
| 98 | - | 97 | + |
| 99 | end | 98 | end |
| 100 | card.ios.vendored_frameworks = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipOcrSdk.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipBase.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/IdcardQuality.framework' | 99 | card.ios.vendored_frameworks = 'CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipOcrSdk.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/AipBase.framework','CNLiveBPersonalVerificationModule/Classes/CNBPersonCardInfo/baiduSDKs/IdcardQuality.framework' |
| 101 | card.resource_bundles = { | 100 | card.resource_bundles = { |
| @@ -117,9 +116,9 @@ s.subspec 'CNBPersonCardInfo' do |card| | @@ -117,9 +116,9 @@ s.subspec 'CNBPersonCardInfo' do |card| | ||
| 117 | ##相册 | 116 | ##相册 |
| 118 | card.dependency 'CNLiveImagePickerController' | 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 | card.dependency 'CNLiveBeeHive' | 122 | card.dependency 'CNLiveBeeHive' |
| 124 | card.dependency 'CNLiveBServices' | 123 | card.dependency 'CNLiveBServices' |
| 125 | end | 124 | 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; |
| @@ -544,6 +543,9 @@ | @@ -544,6 +543,9 @@ | ||
| 544 | //成功 | 543 | //成功 |
| 545 | CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; | 544 | CNBPersonalVerificationController *vc = [[CNBPersonalVerificationController alloc]init]; |
| 546 | [self.navigationController pushViewController:vc animated:NO]; | 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 | } else {//接口失败 | 550 | } else {//接口失败 |
| 549 | 551 |
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)]; |