v3.7.1.1 1、修复系统托盘图标刷新BUG。

This commit is contained in:
wisdomwei201804 2018-04-19 14:39:07 +08:00
parent 39785c2141
commit 5999ab2acb
5 changed files with 8 additions and 4 deletions

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值, //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: : // 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.7.1.0")] [assembly: AssemblyVersion("3.7.1.1")]
[assembly: AssemblyFileVersion("3.7.1.0")] [assembly: AssemblyFileVersion("3.7.1.1")]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -74,7 +74,7 @@ namespace net.nutcore.aliddns
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取WAN口IP失败" + "\r\n"); textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取WAN口IP失败" + "\r\n");
} }
try try //获取域名绑定IP
{ {
clientProfile = DefaultProfile.GetProfile("cn-hangzhou", accessKeyId.Text, accessKeySecret.Text); clientProfile = DefaultProfile.GetProfile("cn-hangzhou", accessKeyId.Text, accessKeySecret.Text);
client = new DefaultAcsClient(clientProfile); client = new DefaultAcsClient(clientProfile);
@ -82,9 +82,10 @@ namespace net.nutcore.aliddns
} }
catch (Exception) catch (Exception)
{ {
textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取域名和绑定IP失败请检查设置项目内容和网络状态" + "\r\n"); textBox_log.AppendText(System.DateTime.Now.ToString() + " " + "获取域名和绑定IP失败请检查设置项目内容和网络状态" + "\r\n");
} }
if (localIP.Text == domainIP.Text) //如果WAN口IP与域名绑定IP一致刷新系统托盘图标
this.notifyIcon_sysTray.Icon = Properties.Resources.alidns_green;
} }
private void readConfigFile() private void readConfigFile()

View File

@ -1,3 +1,6 @@
v3.7.1.1
1、修复系统托盘图标刷新BUG。
v3.7.1.0 v3.7.1.0
1、增加系统托盘图标状态更新功能红色-获取WAN口IP或者获取域名绑定IP失败。黄色-获取成功但WAN口IP和域名绑定IP不一致。绿色-获取成功WAN口IP和域名绑定IP一致。灰色-WAN口网络不通。 1、增加系统托盘图标状态更新功能红色-获取WAN口IP或者获取域名绑定IP失败。黄色-获取成功但WAN口IP和域名绑定IP不一致。绿色-获取成功WAN口IP和域名绑定IP一致。灰色-WAN口网络不通。
2、修改代码和窗体标签刷新BUG。 2、修改代码和窗体标签刷新BUG。