LingxinMeng 1 سال پیش
والد
کامیت
2676f8a6f3

+ 1 - 2
aarch64/pji/common/config/c_cloud.go

@@ -109,7 +109,7 @@ func InitCloudConfig() {
 // refreshCloudConfig 更新业务配置
 func refreshCloudConfig() {
 	// 获取文件的目录
-	util.CreateParentDir(LocalConfig.CloudConfigLocalPath)
+	_ = util.CreateParentDir(LocalConfig.CloudConfigLocalPath)
 	// 3 ------- 获取 yaml 字符串 -------
 	var content []byte
 	cloudConfigObjectKey := LocalConfig.OssBasePrefix + LocalConfig.EquipmentNo + "/" + LocalConfig.CloudConfigFilename
@@ -163,5 +163,4 @@ func checkCloudConfig(check cloudConfig) bool {
 		os.Exit(-1)
 	}
 	return true
-
 }

+ 3 - 0
amd64/web_server/handler/h_report.go

@@ -28,6 +28,9 @@ func Page(c *gin.Context) {
 		return
 	}
 	var result []entity.Record
+
+	// todo 查询数据库
+
 	for i := 0; i < param.PageSize; i++ {
 		result = append(result, entity.Record{
 			Team:         "team" + util.NewShortUUID(),

+ 2 - 2
amd64/web_server/sql/insert_device_monitor.sql

@@ -1,2 +1,2 @@
-insert into device_monitor(total_cpu_usage, total_memory_usage, top10_process,device_number,soc_ip)
-values (?,?,?,?,?)
+insert into device_monitor(total_cpu_usage, total_memory_usage, top10_process,device_number,soc_ip,report_time)
+values (?,?,?,?,?,?)