Browse Source

Merge branch 'dev/2.4_rai_new' into debug

ziwen 2 years ago
parent
commit
8ed1d0dab0
1 changed files with 3 additions and 7 deletions
  1. 3 7
      controller/contract/register.go

+ 3 - 7
controller/contract/register.go

@@ -823,21 +823,17 @@ func (rg *RegisterController) Detail(c *gin.Context) {
 		return
 	}
 
-	if item.SellerId != 0{
+	if item.SellerId != 0 {
 		item.SellerIds = strconv.Itoa(item.SellerId)
 		if item.RaiSellerId != 0 {
 			item.SellerIds += "," + strconv.Itoa(item.RaiSellerId)
 		}
 	} else {
 		if item.RaiSellerId != 0 {
-			item.SellerIds += strconv.Itoa(item.RaiSellerId)
+			item.SellerIds = strconv.Itoa(item.RaiSellerId)
 		}
 	}
-
-	item.SellerIds = strconv.Itoa(item.SellerId)
-	if item.RaiSellerId != 0 {
-		item.SellerIds += "," + strconv.Itoa(item.RaiSellerId)
-	}
+	
 	item.SellerIds = strings.Trim(item.SellerIds, ",")
 	result.ContractRegisterItem = item