You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Google.Protobuf.WellKnownTypes;
namespace SogClient
{
//public class TestGooglePay : ITestHandler
//{
// private bool m_bSendRequested = false;
// public override void Update(long nowSecond)
// {
// if(m_bSendRequested == false)
// {
// SendGooglePayReq();
// }
// }
// public TestGooglePay(Player player)
// {
// SetPlayer(player);
// }
// public override void HandlerMsg(RequestPacket packet)
// {
// if(packet.MsgID == (int)CSGameMsgID.PayGoogleRes)
// {
// OnPayGoogleRes(packet);
// }
// }
// private void SendGooglePayReq()
// {
// m_bSendRequested = true;
// CSPayGoogleReq req = new CSPayGoogleReq();
// req.Uid = m_player.GetUid();
// req.ItemID = "gp_30";
// //SendToServer(req, (int)CSGameMsgID.PayGoogleReq);
// }
// private void OnPayGoogleRes(RequestPacket packet)
// {
// CSPayGoogleRes res = (CSPayGoogleRes)packet.Packet;
// TraceLog.Debug("OnPayGoogleRes uid {0} ret {1} orderid {2}", res.Uid, res.Ret, res.OrderId);
// CSPayGoogleSuccessReq req = new CSPayGoogleSuccessReq();
// req.Uid = res.Uid;
// req.Signature = "kshdfkahlsdjkf";
// req.PurchaseData = "{orderid : asdfadfasdf}";
// SendToServer(req, (int)CSGameMsgID.PayGoogleSuccessReq);
// }
//}
}