Browse Source

优化代码

yinyujing 4 years ago
parent
commit
92e4979cc8
1 changed files with 8 additions and 0 deletions
  1. 8 0
      NB_IOT_TCP_HP_SOCKET/MainForm_TCP.cs

+ 8 - 0
NB_IOT_TCP_HP_SOCKET/MainForm_TCP.cs

@@ -375,7 +375,15 @@ namespace NB_IOT_TCP_HP_SOCKET
                         {
                             psp.SourceNumber = clientInfo.SourceNumber;
                         }
+                        else
+                        {
+                            clientInfo.SourceNumber = psp.SourceNumber;
+                        }
                         if (!string.IsNullOrEmpty(clientInfo.DestNumber))
+                        {
+                            psp.DestNumber = clientInfo.DestNumber;
+                        }
+                        else
                         {
                             clientInfo.DestNumber = psp.DestNumber;
                         }