This commit is contained in:
2026-02-01 17:16:41 +08:00
parent 82d8915d30
commit 67eea00b63
2 changed files with 5 additions and 3 deletions

View File

@@ -2,13 +2,13 @@ package agent
import (
"context"
"encoding/hex"
"encoding/json"
"strconv"
"tydata-server/app/main/model"
"tydata-server/common/ctxdata"
"tydata-server/common/xerr"
"tydata-server/pkg/lzkit/crypto"
"encoding/hex"
"encoding/json"
"strconv"
"github.com/Masterminds/squirrel"
"github.com/pkg/errors"
@@ -34,6 +34,7 @@ func NewGeneratingLinkLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Ge
}
func (l *GeneratingLinkLogic) GeneratingLink(req *types.AgentGeneratingLinkReq) (resp *types.AgentGeneratingLinkResp, err error) {
return nil, errors.Wrapf(xerr.NewErrMsg("系统正在升级,查询服务暂不可用,恢复时间待定"), "生成代理链接")
userID, err := ctxdata.GetUidFromCtx(l.ctx)
if err != nil {
return nil, errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "生成代理链接, %v", err)