Commit 789758c015d7a6731a28469395d336afc6140087
1 parent
a22df499
提交0.0.5
Showing
4 changed files
with
42 additions
and
5 deletions
CNLiveServiceCenterModule.podspec
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/Controller/CNLiveBServiceCenterController.m
| ... | ... | @@ -20,6 +20,7 @@ |
| 20 | 20 | #import <CNLiveBeeHive/CNLiveBeeHive.h> |
| 21 | 21 | #import "CNLiveBOrganizationValidationProtocol.h" |
| 22 | 22 | #import <YYKit/YYKit.h> |
| 23 | +#import <QMUIKit/QMUIKit.h> | |
| 23 | 24 | |
| 24 | 25 | #define CNLiveBGetServiceStatusUrl cn_API_OpenApi2(@"/user/readWJJBStatusById") |
| 25 | 26 | #define CNLiveBOrganizationValidattionStatusUrl cn_API_OpenApi2(@"/auser/getAccount.action") |
| ... | ... | @@ -75,9 +76,14 @@ |
| 75 | 76 | |
| 76 | 77 | } |
| 77 | 78 | |
| 79 | +- (void)viewWillDisappear:(BOOL)animated { | |
| 80 | + [super viewWillDisappear:animated]; | |
| 81 | + self.navigationController.navigationBarHidden = NO; | |
| 82 | +} | |
| 83 | + | |
| 78 | 84 | - (void)viewDidDisappear:(BOOL)animated { |
| 79 | 85 | [super viewDidDisappear:animated]; |
| 80 | - self.navigationController.navigationBarHidden = NO; | |
| 86 | + | |
| 81 | 87 | } |
| 82 | 88 | |
| 83 | 89 | #pragma mark - |
| ... | ... | @@ -315,12 +321,12 @@ |
| 315 | 321 | NSString *strUrl = CNLiveBOrganizationValidattionStatusUrl; |
| 316 | 322 | NSDictionary *dict = @{ |
| 317 | 323 | @"sid": [NSString stringWithFormat:@"%@",CNUserShareModel.uid], |
| 318 | - @"sign":@"" | |
| 319 | 324 | }; |
| 320 | - | |
| 325 | + [QMUITips showLoadingInView:self.view]; | |
| 321 | 326 | [CNLiveNetworking setAllowRequestDefaultArgument:YES]; |
| 322 | 327 | [CNLiveNetworking setupShowDataResult:NO]; |
| 323 | 328 | [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodPOST URLString:strUrl Param:dict CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { |
| 329 | + [QMUITips hideAllTipsInView:self.view]; | |
| 324 | 330 | |
| 325 | 331 | NSLog(@"点播详情数据 = %@",responseObject); |
| 326 | 332 | ... | ... |
Example/CNLiveServiceCenterModule/CNLIVEBAppDelegate.m
| ... | ... | @@ -69,7 +69,7 @@ static NSString * uuid; |
| 69 | 69 | CNUserShareModel.faceUrl = @"http://yweb0.cnliveimg.com/images/headImg/2019/1211/1576034177571_small.jpg"; |
| 70 | 70 | CNUserShareModel.nickname = @""; |
| 71 | 71 | CNUserShareModel.mobile = @"15027621766"; |
| 72 | - CNUserShareModel.uid = @"10514578"; | |
| 72 | + CNUserShareModel.uid = @"10514581"; | |
| 73 | 73 | |
| 74 | 74 | } |
| 75 | 75 | - (NSString *)appUUIDString | ... | ... |
Example/CNLiveServiceCenterModule/CNLiveServiceCenterModule-Info.plist
| ... | ... | @@ -2,6 +2,37 @@ |
| 2 | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | + <key>NSAppTransportSecurity</key> | |
| 6 | + <dict> | |
| 7 | + <key>NSAllowsArbitraryLoads</key> | |
| 8 | + <true/> | |
| 9 | + </dict> | |
| 10 | + <key>NSContactsUsageDescription</key> | |
| 11 | + <string>请求访问通讯录</string> | |
| 12 | + <key>NSCameraUsageDescription</key> | |
| 13 | + <string>App需要您的同意,才能访问相机</string> | |
| 14 | + <key>NSPhotoLibraryUsageDescription</key> | |
| 15 | + <string>App需要您的同意,才能访问相册</string> | |
| 16 | + <key>NSAppleMusicUsageDescription</key> | |
| 17 | + <string>App需要您的同意,才能访问媒体资料库</string> | |
| 18 | + <key>NSBluetoothPeripheralUsageDescription</key> | |
| 19 | + <string>App需要您的同意,才能访问蓝牙</string> | |
| 20 | + <key>NSCalendarsUsageDescription</key> | |
| 21 | + <string>App需要您的同意,才能访问日历</string> | |
| 22 | + <key>NSHealthShareUsageDescription</key> | |
| 23 | + <string>App需要您的同意,才能访问健康分享</string> | |
| 24 | + <key>NSHealthUpdateUsageDescription</key> | |
| 25 | + <string>App需要您的同意,才能访问健康更新 </string> | |
| 26 | + <key>NSLocationAlwaysUsageDescription</key> | |
| 27 | + <string>App需要您的同意,才能始终访问位置</string> | |
| 28 | + <key>NSLocationUsageDescription</key> | |
| 29 | + <string>App需要您的同意,才能访问位置</string> | |
| 30 | + <key>NSMicrophoneUsageDescription</key> | |
| 31 | + <string>App需要您的同意,才能访问麦克风</string> | |
| 32 | + <key>NSMotionUsageDescription</key> | |
| 33 | + <string>App需要您的同意,才能访问运动与健身</string> | |
| 34 | + <key>NSRemindersUsageDescription</key> | |
| 35 | + <string>App需要您的同意,才能访问提醒事项</string> | |
| 5 | 36 | <key>CFBundleDevelopmentRegion</key> |
| 6 | 37 | <string>en</string> |
| 7 | 38 | <key>CFBundleDisplayName</key> | ... | ... |