From a3a24e1cf44aa4e95a8684c86455a2b7064ac623 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 23 七月 2024 04:51:29 +0800
Subject: [PATCH] 定时删除本地存储的图片

---
 client/notify.go |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/client/notify.go b/client/notify.go
index 2b1cd08..66e9584 100644
--- a/client/notify.go
+++ b/client/notify.go
@@ -49,10 +49,11 @@
 		return vo.StatusOtherError
 	}
 
-	logger.Debug("Post notification success.")
+	logger.Debug("Post subscribe success.")
 
 	return vo.StatusSuccess
 }
+
 func UpdateSubscribe(url string, msg []byte) int {
 	rsp, err := util.HttpPut(url, headers, msg)
 	if err != nil {
@@ -68,7 +69,16 @@
 		return vo.StatusOtherError
 	}
 
-	logger.Debug("Post notification success.")
+	logger.Debug("put subscribe success.")
 
 	return vo.StatusSuccess
 }
+
+func GetSubscribes(url string) ([]byte, error) {
+	rsp, err := util.HttpGet(url, headers)
+	if err != nil {
+		logger.Warn("Get subscribe failed, %s", err.Error())
+	}
+
+	return rsp, err
+}

--
Gitblit v1.8.0