WH01243 4 年之前
父節點
當前提交
f146866d46
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 {
 		url = url + "/data/dedupAndSave?personId=" + detailedData.UserId + "&infoId=" + infoId + "&accountId=" + detailedData.AccountId
 		res, urlerr := http.PostForm(url, nil)
+		if urlerr!=nil{
+			return entity.ErrorCode, "去重失败"
+		}
 		defer res.Body.Close()
 		body, _ := ioutil.ReadAll(res.Body)
 		dat := entity.Dedup{}