Jelajahi Sumber

1.添加reset password 提示操作,修改不区分大小写

slambb 2 tahun lalu
induk
melakukan
d7fb450ee1

File diff ditekan karena terlalu besar
+ 13 - 124
Assets/BowArrow/Scenes/Login.unity


+ 1 - 1
Assets/BowArrow/Scripts/CommonConfig.cs

@@ -64,7 +64,7 @@ public class CommonConfig
                 else if (serverIndex == 1) 
                     return "http://34.238.232.118/SmartBowBusinessServer";
             } 
-            return "http://192.168.1.11:11432/SmartBowBusinessServer";
+            return "http://192.168.0.112:11432/SmartBowBusinessServer";
         }
     }
     //业务服务端WS访问地址

+ 1 - 0
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/cn.json

@@ -257,6 +257,7 @@
   "RetrievePasswordView-tip2": "该手机未绑定任何游戏账号",
   "RetrievePasswordView-tip3": "重置密码成功",
   "RetrievePasswordView-tip4": "重置密码失败",
+  "RetrievePasswordView-tip5": "此账户没有相应的游戏帐户",
 
   "RelateValidateView-email00": "绑定邮箱",
   "RelateValidateView-email0": "邮箱验证",

+ 1 - 0
Assets/BowArrow/Scripts/Components/TextAutoLanguage2/Resources/TextAutoLanguage2/en.json

@@ -258,6 +258,7 @@
   "RetrievePasswordView-tip2": "This phone is not bound to any game account",
   "RetrievePasswordView-tip3": "Password reset succeeded",
   "RetrievePasswordView-tip4": "Password reset failed",
+  "RetrievePasswordView-tip5": "This account does not have a corresponding game account",
 
   "RelateValidateView-email00": "Bind email",
   "RelateValidateView-email0": "Email verification",

+ 1 - 0
Assets/BowArrow/Scripts/Network/HttpController/LoginController.cs

@@ -9,6 +9,7 @@ using Newtonsoft.Json;
 public class LoginController : JCUnityLib.Singleton<LoginController>
 {
     public IEnumerator LoginNormal(string username, string password, Action<RequestResult> callback) {
+        Debug.Log("LoginNormal:"+ username);
         string url = CommonConfig.gateServerURL + "/gameLogin/loginNormal";
         WWWForm form = new WWWForm();
         form.AddField("username", username);

+ 9 - 1
Assets/BowArrow/Views/LoginScene/RetrievePasswordView/RetrievePasswordView.cs

@@ -346,13 +346,17 @@ public class RetrievePasswordView : MonoBehaviour, MenuBackInterface
     }
     void OnResetAccount(JArray jArray,string account)
     {
+        bool bHasAccount = false;
         foreach (var item in jArray)
         {
             string username = item.Value<string>("username");
             long timestamp = item.Value<long>("timestamp");
             string sign = item.Value<string>("sign");
-            if (account == username)
+            Debug.Log("server:"+ username + " = account:"+ account);
+            if (account.ToLower() == username.ToLower())
             {
+                bHasAccount = true;
+                Debug.Log("server.ToLower():" + username.ToLower() + " = account.ToLower():" + account.ToLower());
                 _currentUsername = username;
                 _currentUsernameTimestamp = timestamp;
                 _currentUsernameSign = sign;
@@ -370,6 +374,10 @@ public class RetrievePasswordView : MonoBehaviour, MenuBackInterface
                 }));
             }
         }
+        //如果没有账户。提示
+        if (!bHasAccount) {
+            PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByKey("RetrievePasswordView-tip5"));
+        }
     }
 
     public void onDetectPassword()

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini