更新NTP时间校对

master
feiyangqingyun 2020-09-17 09:17:54 +08:00
parent b25fdeee9f
commit 0ee67807f0
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
<item row="0" column="1">
<widget class="QLineEdit" name="txtNtpIP">
<property name="text">
<string>133.100.11.8</string>
<string>ntp1.aliyun.com</string>
</property>
</widget>
</item>

View File

@ -18,7 +18,7 @@ NtpClient *NtpClient::Instance()
NtpClient::NtpClient(QObject *parent) : QObject(parent)
{
ntpIP = "202.120.2.101";
ntpIP = "ntp1.aliyun.com";
udpSocket = new QUdpSocket(this);
connect(udpSocket, SIGNAL(connected()), this, SLOT(sendData()));