代码整理重构,修复个人文件下载失败的BUG,发布版本1.4.0
This commit is contained in:
@@ -398,10 +398,10 @@ namespace 软件系统客户端Wpf
|
||||
{
|
||||
try
|
||||
{
|
||||
net_socket_client.KeyToken = CommonHeadCode.KeyToken;//新增的身份令牌
|
||||
net_socket_client.KeyToken = CommonLibrary.CommonProtocol.KeyToken;//新增的身份令牌
|
||||
net_socket_client.EndPointServer = new System.Net.IPEndPoint(
|
||||
System.Net.IPAddress.Parse(UserClient.ServerIp),
|
||||
CommonLibrary.CommonLibrary.Port_Main_Net);
|
||||
CommonLibrary.CommonProtocol.Port_Main_Net);
|
||||
net_socket_client.ClientAlias = $"{UserClient.UserAccount.UserName} ({UserClient.UserAccount.Factory})";//标记客户端在线的名称
|
||||
net_socket_client.ClientStart();
|
||||
}
|
||||
@@ -608,8 +608,9 @@ namespace 软件系统客户端Wpf
|
||||
#endregion
|
||||
|
||||
#region Udp发送示例
|
||||
|
||||
/// <summary>
|
||||
/// 调用该方法并指定参数即可,最长字符串不得
|
||||
/// 调用该方法并指定参数即可,最长字符串不得超过服务器定义的数据
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
private void SendServerUdpData(int customer, string data)
|
||||
@@ -760,6 +761,8 @@ namespace 软件系统客户端Wpf
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
private void Button_BackMain_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//点击了主页
|
||||
|
||||
@@ -57,10 +57,10 @@ namespace 软件系统客户端Wpf.Views
|
||||
}
|
||||
|
||||
using (FormSimplyFileUpload upload = new FormSimplyFileUpload(
|
||||
CommonHeadCode.KeyToken,
|
||||
CommonLibrary.CommonProtocol.KeyToken,
|
||||
UserClient.LogNet,
|
||||
UserClient.ServerIp,
|
||||
CommonLibrary.CommonLibrary.Port_Share_File,
|
||||
CommonLibrary.CommonProtocol.Port_Share_File,
|
||||
UserClient.UserAccount.UserName))
|
||||
{
|
||||
upload.ShowDialog();
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace 软件系统客户端Wpf.Views
|
||||
|
||||
fileClient = new SimpleFileClient()
|
||||
{
|
||||
KeyToken = CommonLibrary.CommonHeadCode.KeyToken,
|
||||
KeyToken = CommonLibrary.CommonProtocol.KeyToken,
|
||||
LogNet = UserClient.LogNet,
|
||||
ServerIpEndPoint =new IPEndPoint(IPAddress.Parse(UserClient.ServerIp),CommonLibrary.CommonLibrary.Port_Advanced_File_Server)
|
||||
ServerIpEndPoint =new IPEndPoint(IPAddress.Parse(UserClient.ServerIp),CommonLibrary.CommonProtocol.Port_Advanced_File_Server)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user