|
@@ -345,21 +345,25 @@ namespace PDF_Master.Helper
|
|
App.IsLogin = true;
|
|
App.IsLogin = true;
|
|
Settings.Default.UserDate.Email= jobject["email"].ToObject<string>().ToLower();
|
|
Settings.Default.UserDate.Email= jobject["email"].ToObject<string>().ToLower();
|
|
Settings.Default.UserDate.id= jobject["id"].ToObject<string>().ToLower();
|
|
Settings.Default.UserDate.id= jobject["id"].ToObject<string>().ToLower();
|
|
- Settings.Default.UserDate.subscribeid = jobject["subscriptionInfoList"][0]["id"].ToObject<string>().ToLower();
|
|
|
|
- Settings.Default.UserDate.subscribeuserid = jobject["subscriptionInfoList"][0]["userId"].ToObject<string>().ToLower();
|
|
|
|
- Settings.Default.UserDate.subscribeplatform = jobject["subscriptionInfoList"][0]["platform"].ToObject<int>();
|
|
|
|
- Settings.Default.UserDate.subscribestatus = jobject["subscriptionInfoList"][0]["status"].ToObject<int>();
|
|
|
|
- if(Settings.Default.UserDate.subscribestatus>0)
|
|
|
|
|
|
+ JArray subscriptionInfoList = (JArray)jobject["subscriptionInfoList"];
|
|
|
|
+
|
|
|
|
+ foreach (JToken info in subscriptionInfoList)
|
|
{
|
|
{
|
|
- Settings.Default.UserDate.subscribeendDate = jobject["subscriptionInfoList"][0]["endDate"].ToObject<string>().ToLower();
|
|
|
|
|
|
+ if ((int)info["platform"] == 2)
|
|
|
|
+ {
|
|
|
|
+ Settings.Default.UserDate.subscribeid = (string)info["id"];
|
|
|
|
+ Settings.Default.UserDate.subscribeuserid = (string)info["userId"];
|
|
|
|
+ Settings.Default.UserDate.subscribeplatform = (int)info["platform"];
|
|
|
|
+ Settings.Default.UserDate.subscribestatus = (int)info["status"];
|
|
|
|
+ if (Settings.Default.UserDate.subscribestatus > 0)
|
|
|
|
+ {
|
|
|
|
+ Settings.Default.UserDate.subscribeendDate = (string)info["endDate"];
|
|
|
|
+ }
|
|
|
|
+ Settings.Default.UserDate.subscribepayType = (int)info["payType"];
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- Settings.Default.UserDate.subscribepayType = jobject["subscriptionInfoList"][0]["payType"].ToObject<int>();
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //Settings.Default.UserDate.subscriberType = jobject["subscriberType"].ToObject<string>().ToLower();
|
|
|
|
-
|
|
|
|
|
|
|
|
#region 试用策略
|
|
#region 试用策略
|
|
//Settings.Default.UserDate.isInFreeUseTime= jobject["isInFreeUseTime"].ToObject<bool>();
|
|
//Settings.Default.UserDate.isInFreeUseTime= jobject["isInFreeUseTime"].ToObject<bool>();
|