mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 18:50:26 +08:00
字段中的blob和JSON类型映射为[]byte和dbs.JSON
This commit is contained in:
@@ -71,8 +71,8 @@ func (this *HealthCheckTask) loop() error {
|
||||
clusterId := int64(cluster.Id)
|
||||
|
||||
config := &serverconfigs.HealthCheckConfig{}
|
||||
if len(cluster.HealthCheck) > 0 && cluster.HealthCheck != "null" {
|
||||
err = json.Unmarshal([]byte(cluster.HealthCheck), config)
|
||||
if len(cluster.HealthCheck) > 0 {
|
||||
err = json.Unmarshal(cluster.HealthCheck, config)
|
||||
if err != nil {
|
||||
logs.Println("[TASK][HEALTH_CHECK]" + err.Error())
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user