JLChen
2020-06-03 0b616cd842c3066767cc6ea8f709c5fd6e0c2d99
SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
@@ -252,12 +252,21 @@
#if __IOS__
                                                DeviceType = "iphone";
#endif
                                                string jsonString = "{" +
                                                      "\"RegID\":" + "\"" + UserConfig.Instance.tokenID + "\"" + "," +
                                                      "\"Alias\":" + "\"" + UserConfig.Instance.phoneName + "\"" + "," +
                                                      "\"Account\":" + "\"" + account + "\"" +
                                                                       "}";
                                                MainPage.RequestHttps (@"AddRegID", jsonString, true);
                                                var mAddRegIDObj = new AddRegIDObj () {
                                                    RegID = UserConfig.Instance.tokenID,
                                                    Alias = UserConfig.Instance.phoneName,
                                                    Account = account,
                                                    UserMode = 2,
                                                };
                                                var mAddRegIDObjJson = Newtonsoft.Json.JsonConvert.SerializeObject (mAddRegIDObj);
                                                MainPage.RequestHttps (@"AddRegID", mAddRegIDObjJson, true, false);
                                                //string jsonString = "{" +
                                                //      "\"RegID\":" + "\"" + UserConfig.Instance.tokenID + "\"" + "," +
                                                //      "\"Alias\":" + "\"" + UserConfig.Instance.phoneName + "\"" + "," +
                                                //      "\"Account\":" + "\"" + account + "\"" +
                                                //                       "}";
                                                //MainPage.RequestHttps (@"AddRegID", jsonString, true);
#if wallon
#else
                                                if (!string.IsNullOrEmpty (MainPage.LoginUser.AllVisionRegisterDevUserNameGuid)) {
@@ -1391,12 +1400,21 @@
#if __IOS__
                                DeviceType = "iphone";
#endif
                                string jsonString = "{" +
                                                      "\"RegID\":" + "\"" + UserConfig.Instance.tokenID + "\"" + "," +
                                                      "\"Alias\":" + "\"" + UserConfig.Instance.phoneName + "\"" + "," +
                                                      "\"Account\":" + "\"" + account + "\"" +
                                                       "}";
                                MainPage.RequestHttps (@"AddRegID", jsonString, true);
                                var mAddRegIDObj = new AddRegIDObj () {
                                    RegID = UserConfig.Instance.tokenID,
                                    Alias = UserConfig.Instance.phoneName,
                                    Account = account,
                                    UserMode = 2,
                                };
                                var mAddRegIDObjJson = Newtonsoft.Json.JsonConvert.SerializeObject (mAddRegIDObj);
                                MainPage.RequestHttps (@"AddRegID", mAddRegIDObjJson, true, false);
                                //string jsonString = "{" +
                                //                      "\"RegID\":" + "\"" + UserConfig.Instance.tokenID + "\"" + "," +
                                //                      "\"Alias\":" + "\"" + UserConfig.Instance.phoneName + "\"" + "," +
                                //                      "\"Account\":" + "\"" + account + "\"" +
                                //                       "}";
                                //MainPage.RequestHttps (@"AddRegID", jsonString, true);
#if wallon
#else
                                if (!string.IsNullOrEmpty (MainPage.LoginUser.AllVisionRegisterDevUserNameGuid)) {