From 0b616cd842c3066767cc6ea8f709c5fd6e0c2d99 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 03 六月 2020 10:10:28 +0800 Subject: [PATCH] 2020-06-03 1.增加极光推送功能。 --- SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs b/SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs index 46b42ab..2191c74 100644 --- a/SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs +++ b/SmartHome/SmartHome/UI/SimpleControl/Phone/Register/AccountLogin.cs @@ -71,7 +71,8 @@ Text = account, }; #if DEBUG - etAccount.Text = "751083166@qq.com"; + etAccount.Text = "2791308028@qq.com"; + //etAccount.Text = "751083166@qq.com"; //etAccount.Text = "18520468203"; //etAccount.Text = "13585007789-debug"; //etAccount.Text = "balina3ban72-debug@gmail.com"; @@ -111,7 +112,7 @@ Text = password, }; #if DEBUG - etPasswrod.Text = "85521566"; + etPasswrod.Text = "123456"; #endif passwrodView.AddChidren (etPasswrod); @@ -278,13 +279,25 @@ string DeviceType = "android"; #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 -- Gitblit v1.8.0