rdluck 4 жил өмнө
parent
commit
f0210d2435
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      controllers/user.go

+ 1 - 2
controllers/user.go

@@ -171,8 +171,6 @@ func (this *UserController) Detail() {
 				}
 				item.PermissionName = permissionStr
 			}
-			item.HasPermission = hasPermission
-
 			item.SellerName = companyItem.SellerName
 			item.SellerMobile = companyItem.Mobile
 		}
@@ -190,6 +188,7 @@ func (this *UserController) Detail() {
 			hasPermission = 2
 		}
 	}
+	item.HasPermission=hasPermission
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"