From ec49b2e27fd101b4cd5da34165fd8bf348cbc418 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 18 四月 2024 15:43:37 +0800
Subject: [PATCH] 调整校时接口数据格式

---
 controller/systemCtl.go |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/controller/systemCtl.go b/controller/systemCtl.go
index 8904214..b933623 100644
--- a/controller/systemCtl.go
+++ b/controller/systemCtl.go
@@ -5,7 +5,6 @@
 	"gat1400Exchange/pkg/logger"
 	"gat1400Exchange/service"
 	"net/http"
-	"strconv"
 	"time"
 
 	"gat1400Exchange/config"
@@ -110,10 +109,10 @@
 
 // 鏃堕棿鏍″噯
 func (s SystemController) Time(c *gin.Context) {
-	iTime, _ := strconv.ParseInt(time.Now().Format("20060102150405"), 10, 64)
+	//iTime, _ := strconv.ParseInt(time.Now().Format("20060102150405"), 10, 64)
 	rspMsg := vo.ResponseSystemTime{
 		VIIDServerID: config.ServeConf.ID,
-		LocalTime:    iTime,
+		LocalTime:    time.Now().Format("20060102150405"),
 	}
 
 	c.JSON(http.StatusOK, gin.H{"SystemTimeObject": rspMsg})

--
Gitblit v1.8.0