|
@@ -159,9 +159,14 @@ func GetClassifyReportList(user user.UserInfo, classifyIdSecond int, pageIndex,
|
|
|
err = errors.New("查询用户购买产品出错")
|
|
|
return
|
|
|
}
|
|
|
- // 已购或者试用用户可见
|
|
|
- if strings.Contains("永续,正式", companyProduct.Status) || (companyProduct.Status == "试用" && companyProduct.IsSuspend != 1) {
|
|
|
- productAuthOk = true
|
|
|
+ if companyProduct != nil {
|
|
|
+ // 无FICC权限的客户不可见
|
|
|
+ if companyProduct.CompanyProductID > 0 {
|
|
|
+ // 已购或者试用用户可见
|
|
|
+ if strings.Contains("永续,正式", companyProduct.Status) || (companyProduct.Status == "试用" && companyProduct.IsSuspend != 1) {
|
|
|
+ productAuthOk = true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
classifyInfo, err := classify.GetByClassifyId(classifyIdSecond)
|
|
|
if err != nil {
|