瀏覽代碼

update

master
DengBiao 1 年之前
父節點
當前提交
901b9e32f3
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      internal/business/domain/user/service/auth.go

+ 2
- 0
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
}


Loading…
取消
儲存