public static void SendReqGetDianQuanReward(CS_COUPONS_PAYTYPE payType) { CSPkg cSPkg = NetworkModule.CreateDefaultCSPKG(1160u); cSPkg.stPkgData.stCouponsRewardReq.bPayType = (byte)payType; Singleton <NetworkModule> .GetInstance().SendLobbyMsg(ref cSPkg, true); }
public static void SendReqQueryAcntDianQuan(CS_COUPONS_PAYTYPE payType = CS_COUPONS_PAYTYPE.CS_COUPONS_PAYTYPE_QUERY, bool isAlert = true) { CSPkg cSPkg = NetworkModule.CreateDefaultCSPKG(1150u); cSPkg.stPkgData.stAcntCouponsReq.bPayType = (byte)payType; Singleton <NetworkModule> .GetInstance().SendLobbyMsg(ref cSPkg, isAlert); }
private void ReqAcntDianQuanHanlder(int seq) { CS_COUPONS_PAYTYPE payType = CS_COUPONS_PAYTYPE.CS_COUPONS_PAYTYPE_QUERY; CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo == null) { CPaySystem.SendReqQueryAcntDianQuan(payType, false); } else { ulong dianQuan = masterRoleInfo.DianQuan; if (this.m_lastDianQuan != dianQuan) { Singleton <CTimerManager> .GetInstance().RemoveTimerSafely(ref seq); this.m_pandoraDianQuanReqSeq = -1; this.m_lastDianQuan = dianQuan; } else { CPaySystem.SendReqQueryAcntDianQuan(payType, false); } } }
public static void SendReqQueryAcntDianQuan(CS_COUPONS_PAYTYPE payType) { CSPkg msg = NetworkModule.CreateDefaultCSPKG(0x47e); msg.stPkgData.stAcntCouponsReq.bPayType = (byte)payType; Singleton <NetworkModule> .GetInstance().SendLobbyMsg(ref msg, true); }
private void OnPaySuccess() { Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); CS_COUPONS_PAYTYPE payType = CS_COUPONS_PAYTYPE.CS_COUPONS_PAYTYPE_NULL; if (!masterRoleInfo.IsGuidedStateSet(22)) { payType = CS_COUPONS_PAYTYPE.CS_COUPONS_PAYTYPE_FIRST; } else if (!masterRoleInfo.IsGuidedStateSet(24)) { payType = CS_COUPONS_PAYTYPE.CS_COUPONS_PAYTYPE_RENEW; } CPaySystem.SendReqQueryAcntDianQuan(payType, true); this.SetDianQuanFirstPay(this.m_dianQuanGiftId); this.RefreshBuyDianQuanPanel(); this.RefreshFirstPayPanel(); this.RefreshRenewalPanel(); }