public void InsertPayment(string serverId, string playerId, string productId, int goodId, string orderId, string orderReceipt) { // note: 需要注意的是在插入完支付信息之后请调用存储数据(LocalPlayerDataManager.NeedSaveToDisk()) // 一定要存盘 IAPPayment payment = new IAPPayment(); payment.mPlatform = (int)IAPPayment.PLATFORM.UNKNOW; //需调用系统方法返回各种不同的平台 payment.mServerId = serverId; payment.mPlayerId = playerId; payment.mProductId = productId; payment.mGoodId = goodId; payment.mOrderId = orderId; payment.mOrderReceipt = orderReceipt; m_lUnVerifyList.Add(payment.mOrderId, payment); }
public void Load(LocalStorageSystem manager) { int count = 0; manager.GetInt(); IAPPayment temp; for (int i = 0; i < count; ++i) { temp = new IAPPayment(); temp.mPlatform = manager.GetInt(); temp.mServerId = manager.GetString(); temp.mPlayerId = manager.GetString(); temp.mProductId = manager.GetString(); temp.mGoodId = manager.GetInt(); temp.mOrderId = manager.GetString(); temp.mOrderReceipt = manager.GetString(); temp.mVerifyFaildedTimes = manager.GetInt(); m_lUnVerifyList.Add(temp.mOrderId, temp); } }