diff --git a/const.go b/const.go index e70382a..0f230ff 100644 --- a/const.go +++ b/const.go @@ -1,3 +1,3 @@ package gojobs -const Version = "1.0.64" +const Version = "1.0.65" diff --git a/jobs_gorm_get.go b/jobs_gorm_get.go index 0335cb4..5c1ccda 100644 --- a/jobs_gorm_get.go +++ b/jobs_gorm_get.go @@ -19,3 +19,8 @@ func (j *JobsGorm) GetRedis() *redis.Client { func (j *JobsGorm) GetCurrentIp() string { return j.config.outsideIp } + +// GetSubscribeAddress 获取订阅地址 +func (j *JobsGorm) GetSubscribeAddress() string { + return j.config.cornKeyPrefix + "_" + j.config.cornKeyCustom +}