Browse Source

登录输入账号没有限制,输入多与少或者错都没有提示

huangxiaodong 3 months ago
parent
commit
4c4f1d287c

+ 7 - 0
创维盒子/code/Class/Guide/LoginType1ViewController.m

@@ -336,6 +336,13 @@
 #pragma mark 验证SN
 - (void)checkSNFunBy:(NSString *)sn{
     
+    if(sn.length != 22){
+        NSString *title1 = NSLocalizedString(@"login_input_error_tip",nil);
+        [[iToast makeText:title1] show];
+        return;
+    }
+    
+    
     KWeakSelf
     [[netWorkManager shareInstance] getThridMsgBySN:sn success:^(id  _Nonnull responseObject) {
         DeviceThirdIdModel *model = responseObject;

+ 1 - 0
创维盒子/code/en.lproj/Localizable.strings

@@ -675,3 +675,4 @@
 "login_protocol_tip_3"   = "and";
 "login_protocol_tip_4"   = "Privacy Policy";
 "login_protocol_tip_5"   = "Related terms and conditions";
+"login_input_error_tip"   = "The account length input is incorrect. The correct length is 22. It is recommended to scan the code or copy the input";

+ 1 - 0
创维盒子/code/zh-Hans.lproj/Localizable.strings

@@ -669,3 +669,4 @@
 "login_protocol_tip_3"   = "和";
 "login_protocol_tip_4"   = "《隐秘政策》";
 "login_protocol_tip_5"   = "相关条款内容";
+"login_input_error_tip"   = "账号长度输入不对,正确长度为22位,建议扫码或者复制输入";

+ 1 - 0
创维盒子/code/zh-Hant.lproj/Localizable.strings

@@ -674,3 +674,4 @@
 "login_protocol_tip_3"   = "和";
 "login_protocol_tip_4"   = "《隱秘政策》";
 "login_protocol_tip_5"   = "相關條款內容";
+"login_input_error_tip"   = "帳號長度輸入不對,正確長度為22,建議掃碼或者複製輸入";