apple 4 年之前
父節點
當前提交
40155f627c

+ 0 - 2
ios/JianYuIOS/JianYuIOS.xcodeproj/project.pbxproj

@@ -967,7 +967,6 @@
 				TARGETED_DEVICE_FAMILY = "1,2";
 				USER_HEADER_SEARCH_PATHS = "";
 				USE_HEADERMAP = YES;
-				VALID_ARCHS = "arm64 arm64e armv7 armv7s";
 			};
 			name = Debug;
 		};
@@ -1052,7 +1051,6 @@
 				TARGETED_DEVICE_FAMILY = "1,2";
 				USER_HEADER_SEARCH_PATHS = "";
 				USE_HEADERMAP = YES;
-				VALID_ARCHS = "arm64 arm64e armv7 armv7s";
 			};
 			name = Release;
 		};

二進制
ios/JianYuIOS/JianYuIOS.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 5
ios/JianYuIOS/JianYuIOS.xcworkspace/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -35,16 +35,16 @@
       <BreakpointProxy
          BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
          <BreakpointContent
-            uuid = "53F4F787-41FD-43F9-AD79-418B5F2433E2"
+            uuid = "CDDBA5A5-F748-4AA4-9BC8-FDE55A0CE13B"
             shouldBeEnabled = "Yes"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
-            filePath = "JianYuIOS/Classes&#xff08;&#x6a21;&#x5757;&#xff09;/JYNewSubViewController.m"
+            filePath = "JianYuIOS/AppDelegate.m"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "1448"
-            endingLineNumber = "1448"
-            landmarkName = "-updateNotifyState"
+            startingLineNumber = "221"
+            endingLineNumber = "221"
+            landmarkName = "-applicationDidBecomeActive:"
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>

+ 42 - 5
ios/JianYuIOS/JianYuIOS/Classes(模块)/JYNewSearchViewController.m

@@ -22,6 +22,7 @@
     BOOL isLoadRedDot;
     CGPoint startTouch;
     BOOL _isMoving;
+    BOOL isExistNoNewWork;
 }
 
 @property (nonatomic, strong) UIProgressView *progressView;
@@ -38,6 +39,7 @@
 
 
 @property(nonatomic, strong)NoNetView *noNetView;
+@property(nonatomic, strong)NoNetView *failNetView;
 @property(nonatomic, strong)UIPanGestureRecognizer *recognizer;
 @property(nonatomic, strong)ZKClipboardView *clipboardView;
 @property(nonatomic, strong)ZKFaceVerifyMsgView *verifyMsgView;
@@ -520,6 +522,7 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
 
     self.view.backgroundColor = [UIColor whiteColor];
 
+
     [self.view addSubview:self.webView];
     [self.view addSubview:self.progressView];
     [self webViewFirstRequest];
@@ -545,11 +548,7 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
     
 //    UIButton *btn1 = [ZKControl createButtonWithFrame:CGRectMake(100, 100, 100, 100) title:@"测试上传" imageName:nil bgImageName:nil target:self method:@selector(btn1click)];
 //    [self.view addSubview:btn1];
-    
-    [[GlobalData shareInstance] addOnePlistData:@{
-        @"detail":[[self stringByEvaluatingJavaScriptFromString:@"document.location.href"] stringByAppendingString:[NSString stringWithFormat:@"\nJS异常方法:%@\n%@",@"",@""]],
-        @"reqTime":[NSNumber numberWithInt:0],
-    }];
+
     
 }
 
@@ -736,6 +735,7 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
     [self.webView evaluateJavaScript:@"document.documentElement.style.webkitUserSelect='none';"completionHandler:nil];
     [self judgeIsHiddenBottom];//是否隐藏
     [self removeNoNetViews];
+    [self removeFailNetViews];
     [[LXViewControllerManager shareViewControllerManager] hideHud];
     //写数据
 //    [self writeWKWebData:webView.URL];
@@ -776,6 +776,17 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
 
 // 页面加载失败时调用
 - (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation withError:(nonnull NSError *)error{
+    
+    NSLog(@"页面加载失败");
+    //加载失败  有网络-弹出页面 ,  无网络-记录标记
+    if ([ZKMethod judgmentNetwork]) {
+        //弹出页面
+        [self addNoNetViews];
+    }else {
+        //记录标记
+        isExistNoNewWork = YES;
+    }
+    
     self.recognizer.enabled = YES;
     [[GlobalData shareInstance] addOnePlistData:@{
         @"detail":[[self stringByEvaluatingJavaScriptFromString:@"document.location.href"] stringByAppendingString:[NSString stringWithFormat:@"\n%@",[error description]]],
@@ -1843,6 +1854,9 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
     return mutStr;
 }
 
+
+
+
 -(void)addNoNetViews{
     kMainQueue(^{
         [self removeNoNetViews];
@@ -1859,6 +1873,22 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
 }
 
 
+-(void)addFailNetViews{
+    kMainQueue(^{
+        [self removeNoNetViews];
+        self.failNetView = [NoNetView shareView];
+        [self.view addSubview:self.failNetView];
+    });
+}
+
+-(void)removeFailNetViews{
+    if (self.failNetView ) {
+        [self.failNetView removeFromSuperview];
+        self.failNetView  = nil;
+    }
+}
+
+
 
 
 
@@ -1983,9 +2013,16 @@ NSString *const new_AesKey_1 = @"mGlAgnIBB8bx2nch";
 -(void)netReachChanged:(NSNotification *)notificaition{
     NSDictionary *userInfo = notificaition.userInfo;
     if ([userInfo[@"AFNetworkingReachabilityNotificationStatusItem"] intValue] == 0 || [userInfo[@"AFNetworkingReachabilityNotificationStatusItem"] intValue] == -1) {
+        NSLog(@"针对首页-监听无网络");
         [self addNoNetViews];
     }else{
+        NSLog(@"针对首页-监听有网络");
         [self removeNoNetViews];
+        if (isExistNoNewWork) {
+            NSLog(@"标记清数据");
+            isExistNoNewWork = NO;
+            [self webViewFirstRequest];
+        }
     }
 }
 

+ 1 - 1
ios/JianYuIOS/JianYuIOS/Info.plist

@@ -5,7 +5,7 @@
 	<key>CFBundleDevelopmentRegion</key>
 	<string>zh_CN</string>
 	<key>CFBundleDisplayName</key>
-	<string>$(PRODUCT_NAME)</string>
+	<string>剑鱼标讯</string>
 	<key>CFBundleExecutable</key>
 	<string>$(EXECUTABLE_NAME)</string>
 	<key>CFBundleIdentifier</key>