ziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
525d7424f0
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      controller/contract/register.go

+ 4 - 4
controller/contract/register.go

@@ -258,10 +258,10 @@ func (rg *RegisterController) Add(c *gin.Context) {
 		for _, v := range sellers {
 			if v.DepartmentId == crm.SellerDepartmentId {
 				sellerId = v.AdminId
-				sellerName = v.AdminName
+				sellerName = v.RealName
 			} else if v.DepartmentId == crm.RaiSellerDepartmentId {
 				raiSellerId = v.AdminId
-				raiSellerName = v.AdminName
+				raiSellerName = v.RealName
 			}
 		}
 	}
@@ -544,10 +544,10 @@ func (rg *RegisterController) Edit(c *gin.Context) {
 		for _, v := range sellers {
 			if v.DepartmentId == crm.SellerDepartmentId {
 				sellerId = v.AdminId
-				sellerName = v.AdminName
+				sellerName = v.RealName
 			} else if v.DepartmentId == crm.RaiSellerDepartmentId {
 				raiSellerId = v.AdminId
-				raiSellerName = v.AdminName
+				raiSellerName = v.RealName
 			}
 		}
 	}