From 30ad205b3e805ea5c0f21057e499f97e120c7b01 Mon Sep 17 00:00:00 2001 From: CZ Date: Thu, 1 Aug 2024 09:45:32 +0800 Subject: [PATCH] =?UTF-8?q?INT=E6=95=B0=E5=80=BC=E8=B6=85=E5=87=BA?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Cloud/Client/CloudClient.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Service/Cloud/Client/CloudClient.cs b/Service/Cloud/Client/CloudClient.cs index 8d05a8f..f5da323 100644 --- a/Service/Cloud/Client/CloudClient.cs +++ b/Service/Cloud/Client/CloudClient.cs @@ -139,7 +139,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR private static int GetIncrementId() { - string s = DateTime.Now.ToString("yyMMddHHmmss"); + string s = DateTime.Now.ToString("MMddHHmmss"); if (_incrementId < 999) @@ -151,8 +151,8 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR _incrementId = 1; } - - return Int32.Parse(s+_incrementId); + + return Int32.Parse(s) + _incrementId; } public void InitHandler() {