api/v1/device.go
@@ -29,7 +29,7 @@ if !ok { return } if params.CurrentDeviceID != "" { if params.CurrentDeviceID == "" { ctx.Fail(ecode.ParamsErr) return } @@ -45,7 +45,7 @@ return } service.SetDeviceIDToFile(params.CurrentDeviceID) conf.Conf.SerfClusterStatus = params.CurrentDeviceID conf.Conf.CurrentDeviceID = params.CurrentDeviceID err = crontask.RestartTask(conf.Conf.SerfClusterStatus != constvar.SerfClusterStatusSlave) if err != nil { logx.Errorf("restart task failed:%v", err)