Browse Source

1.我的:网络连接不上文案显示 -- 未链接

huangxiaodong 1 year ago
parent
commit
3ee4b224a5

+ 8 - 1
创维盒子/双子星云手机/mine/mineViewController.m

@@ -79,7 +79,8 @@
     
     
     [_netButton mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.width.mas_equalTo(58);
+        //make.width.mas_equalTo(58);
+        make.width.mas_equalTo(70);
         make.height.mas_equalTo(24);
         make.right.mas_equalTo(-16);
         make.centerY.mas_equalTo(TipImageV.mas_centerY).offset(0);
@@ -437,6 +438,12 @@
     if(![connectDeviceManager shareInstance].isPingOk){
         NetButText = NSLocalizedString(@"mine_net_WAN",nil);
     }
+    
+    if([webSocketManager shareInstance].commandChannelManager.rc_socketStatus != RCSocketCloudPhoneStatusConnected
+       || [webSocketManager shareInstance].commandChannelManager.rc_socketStatus != RCSocketCloudPhoneStatusReceived)
+    {
+        NetButText = NSLocalizedString(@"mine_net_unLink",nil);
+    }
 
     [_netButton setTitle:NetButText forState:UIControlStateNormal];
 }

+ 1 - 0
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -568,6 +568,7 @@
 "cloudPhone_tvShow_before_fullscreen_tip"   = "TV投屏时全面屏功能受限,请关闭投屏后使用。";
 "mine_net_LAN"   = "内网";
 "mine_net_WAN"   = "外网";
+"mine_net_unLink"   = "未链接";
 "mine_help_title"   = "帮助与反馈";
 "mine_newuser_title"   = "新手引导";
 "mine_sn_cancel_title"   = "注销";