소스 검색

no message

xingzai 2 년 전
부모
커밋
f07d2db204
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      services/activity_special.go

+ 4 - 1
services/activity_special.go

@@ -654,10 +654,13 @@ func GetActivitySpecialUserType(companyId int) (userType int, permissionStrnew s
 func GetSpecialUserType(user *models.WxUserItem) (userType int, err error) {
 	companyId := user.CompanyId
 	companyDetail, e := models.GetCompanyDetailByIdGroupTrip(companyId)
-	if e != nil {
+	if e != nil && e.Error() != utils.ErrNoRow() {
 		err = errors.New("GetCompanyDetailByIdGroupTrip, Err: " + e.Error())
 		return
 	}
+	if companyDetail == nil {
+		return
+	}
 	if companyId <= 1 {
 		userType = 0
 	} else {