kobe6258 4 сар өмнө
parent
commit
488bdde983

+ 2 - 3
service/media/media_service.go

@@ -14,7 +14,6 @@ import (
 	mediaDao "eta/eta_mini_ht_api/models/media"
 	productDao "eta/eta_mini_ht_api/models/merchant"
 	"eta/eta_mini_ht_api/service/config"
-	"eta/eta_mini_ht_api/service/report"
 	"eta/eta_mini_ht_api/service/user"
 	"fmt"
 	"gorm.io/gorm"
@@ -101,7 +100,7 @@ func RangeSearchByAnalyst(mediaType string, analystId int, userId int) (total in
 	//for _, permission := range permissionList {
 	//	filterPermissionIds = append(filterPermissionIds, permission.PermissionId)
 	//}
-	filterPermissionIds, riskLevel, err := report.CheckUserRisk(nil, true, userId)
+	filterPermissionIds, riskLevel, err := user.CheckUserRisk(nil, true, userId)
 	if err != nil {
 		logger.Error("校验用户风险等级失败:%v", err)
 		return
@@ -110,7 +109,7 @@ func RangeSearchByAnalyst(mediaType string, analystId int, userId int) (total in
 }
 
 func getCount(mediaType string, permissionIds []int, isLogin bool, userId int) (total int64, latestId int64, orgIds []int, mappingPdRisk string) {
-	filterPermissionIds, riskLevel, err := report.CheckUserRisk(permissionIds, isLogin, userId)
+	filterPermissionIds, riskLevel, err := user.CheckUserRisk(permissionIds, isLogin, userId)
 	if err != nil {
 		logger.Error("校验用户风险等级失败:%v", err)
 		return