|
@@ -162,7 +162,6 @@ func (this *UserController) Detail() {
|
|
if companyItem != nil {
|
|
if companyItem != nil {
|
|
item.CompanyName = companyItem.CompanyName
|
|
item.CompanyName = companyItem.CompanyName
|
|
if companyItem.Status == "试用" || companyItem.Status == "永续" || companyItem.Status == "正式" {
|
|
if companyItem.Status == "试用" || companyItem.Status == "永续" || companyItem.Status == "正式" {
|
|
- hasPermission = 1
|
|
|
|
permissionStr, err := models.GetCompanyPermission(companyItem.CompanyId)
|
|
permissionStr, err := models.GetCompanyPermission(companyItem.CompanyId)
|
|
if err != nil {
|
|
if err != nil {
|
|
br.Msg = "获取信息失败"
|
|
br.Msg = "获取信息失败"
|
|
@@ -170,6 +169,8 @@ func (this *UserController) Detail() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
item.PermissionName = permissionStr
|
|
item.PermissionName = permissionStr
|
|
|
|
+ }else{
|
|
|
|
+ hasPermission = 1
|
|
}
|
|
}
|
|
item.SellerName = companyItem.SellerName
|
|
item.SellerName = companyItem.SellerName
|
|
item.SellerMobile = companyItem.Mobile
|
|
item.SellerMobile = companyItem.Mobile
|