WH01243 4 years ago
parent
commit
f146866d46
1 changed files with 3 additions and 0 deletions
  1. 3 0
      service/balanceService.go

+ 3 - 0
service/balanceService.go

@@ -118,6 +118,9 @@ func (service *BalanceService) UseUserDetailed(duplicateRemoval int64, balanceDa
 	if duplicateRemoval == 1 {
 	if duplicateRemoval == 1 {
 		url = url + "/data/dedupAndSave?personId=" + detailedData.UserId + "&infoId=" + infoId + "&accountId=" + detailedData.AccountId
 		url = url + "/data/dedupAndSave?personId=" + detailedData.UserId + "&infoId=" + infoId + "&accountId=" + detailedData.AccountId
 		res, urlerr := http.PostForm(url, nil)
 		res, urlerr := http.PostForm(url, nil)
+		if urlerr!=nil{
+			return entity.ErrorCode, "去重失败"
+		}
 		defer res.Body.Close()
 		defer res.Body.Close()
 		body, _ := ioutil.ReadAll(res.Body)
 		body, _ := ioutil.ReadAll(res.Body)
 		dat := entity.Dedup{}
 		dat := entity.Dedup{}