Pārlūkot izejas kodu

修复接口应答没有错误

kobe6258 6 dienas atpakaļ
vecāks
revīzija
2a4c934fd5
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      facade/instance/ht_mini_facade.go

+ 2 - 0
facade/instance/ht_mini_facade.go

@@ -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