コード例 #1
0
    protected override void OnRequest(request_recharge_results request, object userdata)
    {
        QueryRechargeResultActionParam param = userdata as QueryRechargeResultActionParam;

        if (param == null)
        {
            return;
        }

        request.openid      = param.OpenId;
        request.platform    = param.Platform;
        request.accesstoken = param.AccessToken;
        request.paytoken    = param.PayToken;
        request.pf          = param.Pf;
        request.pfkey       = param.PfKey;
    }
コード例 #2
0
    private void OnGameCoinsRst(EventBase e)
    {
        BuyGameCoinsRstEvent ev = e as BuyGameCoinsRstEvent;

        if (ev == null)
        {
            return;
        }

        QueryRechargeResultActionParam param = new QueryRechargeResultActionParam();

        param.OpenId      = PlatformSDK.OpenId;
        param.AccessToken = PlatformSDK.AccessToken;
        param.Pf          = PlatformSDK.Pf;
        param.PfKey       = PlatformSDK.PfKey;
        param.PayToken    = PlatformSDK.PayToken;
        param.Platform    = PlatformSDK.Platform;

        Net.Instance.DoAction((int)MESSAGE_ID.ID_MSG_QUERY_RECHARGE_RESULT, param);
    }