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