From 901b9e32f30a6dd85d1875f93f6e9c8d14b43a93 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 13 Dec 2022 21:37:51 +0800 Subject: [PATCH] update --- internal/business/domain/user/service/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/business/domain/user/service/auth.go b/internal/business/domain/user/service/auth.go index d7c91f2..6a01645 100644 --- a/internal/business/domain/user/service/auth.go +++ b/internal/business/domain/user/service/auth.go @@ -3,6 +3,7 @@ package service import ( "context" "errors" + "fmt" "gim/internal/business/comm/db" "gim/internal/business/comm/utils" "gim/internal/business/domain/user/model" @@ -118,6 +119,7 @@ func (*authService) AuthMaster(ctx context.Context, masterId string) error { return gerrors.ErrMasterUnauthorized } packageExpireTime, _ := utils.StrToTime(master.PackageExpireTime) + fmt.Println(">>>>>>>>>>>>>>packageExpireTime>>>>>>>>>>>>>>>", packageExpireTime, time.Now().Unix()) if packageExpireTime < time.Now().Unix() { return gerrors.ErrMasterUnauthorized }