update: 还原 GuruSDKModel 缓存key 值, 确保老版本升级后数据不会丢失
							parent
							
								
									c001fe09ac
								
							
						
					
					
						commit
						49774c3281
					
				|  | @ -21,19 +21,10 @@ namespace Guru | |||
|     { | ||||
|         //-------------- data --------------- | ||||
|          | ||||
|         [JsonProperty(PropertyName = "uid")]  | ||||
|         public string uid = ""; | ||||
|          | ||||
|         [JsonProperty(PropertyName = "b_level")]  | ||||
|         public int bLevel = 0; | ||||
|          | ||||
|         [JsonProperty(PropertyName = "b_play")] | ||||
|         public int bPlay = 0; | ||||
|    | ||||
|         [JsonProperty(PropertyName = "no_ads")] | ||||
|         public bool noAds = false; | ||||
|          | ||||
|         [JsonProperty(PropertyName = "purchased")] | ||||
|         public int b_level = 0; | ||||
|         public int b_play = 0; | ||||
|         public bool no_ads = false; | ||||
|         public List<PurchasedProduct> purchased = new List<PurchasedProduct>(10); | ||||
|          | ||||
|         //-------------- data --------------- | ||||
|  | @ -67,9 +58,9 @@ namespace Guru | |||
|             GuruSDKSerializedModel model = LoadModel(); | ||||
|              | ||||
|             _uid = model.uid; | ||||
|             _noAds = model.noAds; | ||||
|             _bLevel = new BindableProperty<int>(model.bLevel); | ||||
|             _bPlay = new BindableProperty<int>(model.bPlay); | ||||
|             _noAds = model.no_ads; | ||||
|             _bLevel = new BindableProperty<int>(model.b_level); | ||||
|             _bPlay = new BindableProperty<int>(model.b_play); | ||||
|             _purchased = model.purchased; | ||||
|         } | ||||
| 
 | ||||
|  | @ -166,9 +157,9 @@ namespace Guru | |||
|             var model = new GuruSDKSerializedModel() | ||||
|             { | ||||
|                 uid = _uid, | ||||
|                 bLevel = _bLevel.Value, | ||||
|                 bPlay = _bPlay.Value, | ||||
|                 noAds = _noAds, | ||||
|                 b_level = _bLevel.Value, | ||||
|                 b_play = _bPlay.Value, | ||||
|                 no_ads = _noAds, | ||||
|                 purchased = _purchased, | ||||
|             }; | ||||
|              | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue