|
@@ -3,6 +3,7 @@ package service |
|
|
import ( |
|
|
import ( |
|
|
"context" |
|
|
"context" |
|
|
"errors" |
|
|
"errors" |
|
|
|
|
|
"fmt" |
|
|
"gim/internal/business/comm/db" |
|
|
"gim/internal/business/comm/db" |
|
|
"gim/internal/business/comm/utils" |
|
|
"gim/internal/business/comm/utils" |
|
|
"gim/internal/business/domain/user/model" |
|
|
"gim/internal/business/domain/user/model" |
|
@@ -118,6 +119,7 @@ func (*authService) AuthMaster(ctx context.Context, masterId string) error { |
|
|
return gerrors.ErrMasterUnauthorized |
|
|
return gerrors.ErrMasterUnauthorized |
|
|
} |
|
|
} |
|
|
packageExpireTime, _ := utils.StrToTime(master.PackageExpireTime) |
|
|
packageExpireTime, _ := utils.StrToTime(master.PackageExpireTime) |
|
|
|
|
|
fmt.Println(">>>>>>>>>>>>>>packageExpireTime>>>>>>>>>>>>>>>", packageExpireTime, time.Now().Unix()) |
|
|
if packageExpireTime < time.Now().Unix() { |
|
|
if packageExpireTime < time.Now().Unix() { |
|
|
return gerrors.ErrMasterUnauthorized |
|
|
return gerrors.ErrMasterUnauthorized |
|
|
} |
|
|
} |
|
|