Browse Source

1. 分享出去的地址用测试环境的

huangxiaodong 1 year ago
parent
commit
e58e7ce9f2

+ 3 - 0
创维盒子/双子星云手机/AppDelegate/PrefixHeader.pch

@@ -89,6 +89,9 @@ isBangsScreen; \
 //#define CloudService           @"http://14.18.190.141:1280"
 //创维盒子 测试地址
 #define CloudService   @"http://14.18.190.141:1801"
+#define shareService   @"http://testprivacy.phone.armclouding.com:1801/h5/#/pages/fileSharing/index?productType=Private-X&token="
+
+//生产环境
 //#define CloudService   @"http://hiboxde.armclouding.com:7780"
 
 //#define NASService [NSString stringWithFormat:@"http://%@:9888",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.ip];

+ 3 - 3
创维盒子/双子星云手机/Class/Set/previewFile/shareRecordDetailsHWViewController.m

@@ -268,7 +268,7 @@
     NSInteger tag = but.tag;
     
     if(tag == 1){
-        NSString *serUrl = @"http://192.168.12.253:8080/#/pages/fileSharing/index?token=";
+        NSString *serUrl = shareService;
         NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
         
         NSURL *URL = [NSURL URLWithString:shareUrl];
@@ -323,7 +323,7 @@
     _shareTitleLabel.text = titleStr;
     _shareBeginDateLabel.text = _dataModel.createTime;
     
-    NSString *serUrl = @"http://192.168.12.253:8080/#/pages/fileSharing/index?token=";
+    NSString *serUrl = shareService;
     NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
     _shareQRCodeImageView.image = [self generateQRCodeWithInputMessage:shareUrl Width:168 Height:168];
     
@@ -478,7 +478,7 @@
         copyStr1 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_1",nil),copyStr1];
     }
     
-    NSString *serUrl = @"http://192.168.12.253:8080/#/pages/fileSharing/index?token=";
+    NSString *serUrl = shareService;
     NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
     NSString *copyStr2 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_2",nil),shareUrl];
     

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/view/editShareView.m

@@ -331,7 +331,7 @@
         return;;
     }
     
-    NSString *serUrl = @"http://192.168.12.253:8080/#/pages/fileSharing/index?token=";
+    NSString *serUrl = shareService;
     NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,model.data.token];
     //NSString *shareTitle = [[NSString alloc] initWithFormat:@"Private-X%@",NSLocalizedString(@"common_edit_share",nil)];
     NSString *shareTitle = @"Private-X分享";

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/view/shareBySecretView.m

@@ -347,7 +347,7 @@
         copyStr1 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_1",nil),dataModel.name];
     }
     
-    NSString *serUrl = @"http://192.168.12.253:8080/#/pages/fileSharing/index?token=";
+    NSString *serUrl = shareService;
     NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_addShareMod.data.token];
     NSString *copyStr2 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_2",nil),shareUrl];