ziwen преди 2 години
родител
ревизия
525d7424f0
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  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
 			}
 		}
 	}