From 6a2a5447b971a467d54d88257f2179c20f6c6b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Wed, 17 Aug 2022 16:06:27 +0800 Subject: [PATCH] - update get --- const.go | 2 +- jobs_gorm_get.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 +}