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.
 
 
 
 
 
 

45 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
using ProtoCSStruct;
namespace World
{
public static class AdScv
{
public static void OnHomeAdSendHttpSyn(uint serverId, StructPacket packet)
{
long uid = packet.ObjectID;
TraceLog.Debug("AdScv.OnHomeAdSendHttpSyn uid {0}", uid);
PlayerInfoWorld player = WorldServerUtils.GetPlayerTableOp().GetPlayerInfo(uid);
if (player == null)
{
TraceLog.Error("PaySvc.OnHomeAdSendHttpSyn can not find player uid {0}", uid);
return;
}
ref var req = ref packet.GetMessage<SSHomeAdSendHttpSyn>();
req.WorldId = WorldServerUtils.GetAppID();
WorldServerUtils.GetPacketSender().SendToHttpProxyPayServer<SSHomeAdSendHttpSyn>(packet);
}
public static void OnHomeAdSendAwardSyn(uint serverId, StructPacket packet)
{
long uid = packet.ObjectID;
TraceLog.Debug("AdScv.OnHomeAdSendAwardSyn uid {0}",uid );
PlayerInfoWorld player = WorldServerUtils.GetPlayerTableOp().GetPlayerInfo(uid);
if (player == null)
{
TraceLog.Error("PaySvc.OnGooglePayReq can not find player uid {0}", uid);
return;
}
WorldServerUtils.GetPacketSender().SendToServerByID<SSHomeAdSendAwardSyn>(player.GameServerID, packet);
}
}
}