瀏覽代碼

1.同步日志--1.修改浏览器地址

huangxiaodong 1 年之前
父節點
當前提交
f8c04dc028

+ 1 - 1
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -866,7 +866,7 @@
         [self closeCalculatorVC];
         _webVC = [[HWWebViewController alloc] init];
         _webVC.pwd = PwdStr;
-        _webVC.webUrl = @"https://baidu.com";
+        _webVC.webUrl = @"https://www.google.com/";
         [self.window addSubview:_webVC.view];
         ksharedAppDelegate.isDidShowPwdType = YES;
     }else{

+ 3 - 3
创维盒子/双子星云手机/Class/Controller/HWWebViewController.m

@@ -253,7 +253,7 @@
     // 加载网页
     if (self.webUrl.length == 0) { // 百度
         
-        [self loadRequestURL:@"https://www.baidu.com/"];
+        [self loadRequestURL:@"https://www.google.com/"];
         
     }else if ([self.webUrl containsString:@"https://"] ||
         [self.webUrl containsString:@"http://"]) { // 加载网页
@@ -262,7 +262,7 @@
         
     }else { // 搜索
         
-        NSString *text = [NSString stringWithFormat:@"https://www.baidu.com/s?wd=%@",self.webUrl];
+        NSString *text = [NSString stringWithFormat:@"https://www.google.com/s?wd=%@",self.webUrl];
         text = [text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
         [self loadRequestURL:text];
     }
@@ -293,7 +293,7 @@
             [text hasPrefix:@"http://"]) {
             [self loadRequestURL:text];
         }else {
-            text = [NSString stringWithFormat:@"https://www.baidu.com/s?wd=%@",text];
+            text = [NSString stringWithFormat:@"https://www.google.com/s?wd=%@",text];
             text = [text stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
             [self loadRequestURL:text];
         }