예제 #1
0
 /// <summary>
 /// 给接收者推送
 /// </summary>
 /// <param name="nodeId"></param>
 /// <param name="pushPDian"></param>
 private void PushReceive(PushPDian pushPDian)
 {
     if (pushPDian != null)
     {
         CommuTcpClient receiveClient = CommuClient.Values.FirstOrDefault(c => c.Nodeid == pushPDian.NodeId);
         if (receiveClient != null)
         {
             //给接收用户推送P点余额
             ChatFeePush chatFeePush = new ChatFeePush();
             chatFeePush.Body.PDianPush    = pushPDian.PDianPush;
             chatFeePush.Body.PDianBalance = pushPDian.PDianBalance;
             receiveClient.SendData(chatFeePush.ToBytes());
         }
     }
 }