|
@@ -79,6 +79,7 @@ func (ht *HTMiniFacade) Collect(req facade.BaseRequest) (err error) {
|
|
|
resp, err := ht.Post(url, param, req.Auth)
|
|
|
if err != nil {
|
|
|
utils.FileLog.Error("收藏失败,err:%v,resp:%v", err, resp)
|
|
|
+ return
|
|
|
}
|
|
|
_, err = parseResult(resp)
|
|
|
return
|
|
@@ -96,6 +97,7 @@ func (ht *HTMiniFacade) UnCollect(req facade.BaseRequest) (err error) {
|
|
|
resp, err := ht.Post(url, param, req.Auth)
|
|
|
if err != nil {
|
|
|
utils.FileLog.Error("取消收藏失败,err:%v,resp:%v", err, resp)
|
|
|
+ return
|
|
|
}
|
|
|
_, err = parseResult(resp)
|
|
|
return
|
|
@@ -123,6 +125,7 @@ func (ht *HTMiniFacade) IsCollect(req facade.BaseRequest) bool {
|
|
|
resp, err := ht.Post(url, param, req.Auth)
|
|
|
if err != nil {
|
|
|
utils.FileLog.Error("获取是否收藏失败,err:%v,resp:%v", err, resp)
|
|
|
+ return false
|
|
|
}
|
|
|
response, err := parseResult(resp)
|
|
|
if err != nil {
|