INT数值超出修正

zw
CZ 4 months ago
parent 245bdf8403
commit 30ad205b3e

@ -139,7 +139,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR
private static int GetIncrementId() private static int GetIncrementId()
{ {
string s = DateTime.Now.ToString("yyMMddHHmmss"); string s = DateTime.Now.ToString("MMddHHmmss");
if (_incrementId < 999) if (_incrementId < 999)
@ -152,7 +152,7 @@ public class CloudClient : IMqttClientConnectedHandler, IMqttApplicationMessageR
} }
return Int32.Parse(s+_incrementId); return Int32.Parse(s) + _incrementId;
} }
public void InitHandler() public void InitHandler()
{ {

Loading…
Cancel
Save