| | |
| | | |
| | | import ( |
| | | "apsClient/conf" |
| | | "apsClient/constvar" |
| | | "apsClient/crontask" |
| | | "apsClient/model/request" |
| | | "apsClient/model/response" |
| | | _ "apsClient/model/response" |
| | | "apsClient/pkg/contextx" |
| | | "apsClient/pkg/ecode" |
| | | "apsClient/pkg/logx" |
| | | "apsClient/pkg/safe" |
| | | "apsClient/service" |
| | | "github.com/gin-gonic/gin" |
| | | ) |
| | |
| | | } |
| | | service.SetDeviceIDToFile(params.CurrentDeviceID) |
| | | conf.Conf.CurrentDeviceID = params.CurrentDeviceID |
| | | safe.Go(func() { |
| | | _ = crontask.RestartTask(conf.Conf.SerfClusterStatus != constvar.SerfClusterStatusSlave) |
| | | }) |
| | | ctx.Ok() |
| | | } |
| | | |