Browse Source

no message

xingzai 1 year ago
parent
commit
cc94b41654
1 changed files with 3 additions and 2 deletions
  1. 3 2
      services/company_permission.go

+ 3 - 2
services/company_permission.go

@@ -121,9 +121,9 @@ func GetUserHasPermissionArticle(user *models.WxUserItem) (hasPermission int, se
 		}
 		if companyPermission != "" {
 			if applyCount > 0 {
-				hasPermission = 3
-			} else {
 				hasPermission = 2
+			} else {
+				hasPermission = 3
 				//获取权益销售信息 如果是FICC的客户类型,则默认他申请过
 				sellerItemQy, e := models.GetSellerByCompanyIdCheckFicc(user.CompanyId, 2)
 				if e != nil && e.Error() != utils.ErrNoRow() {
@@ -138,6 +138,7 @@ func GetUserHasPermissionArticle(user *models.WxUserItem) (hasPermission int, se
 		} else {
 			hasPermission = 3
 		}
+		hasPermission = 3 //弹窗逻辑变更,状态强制改为3
 	}
 	popupMsg = "需要升级行业套餐权限才可查看此报告,请联系对口销售"
 	return