game7 api
This commit is contained in:
@@ -3,6 +3,7 @@ package carv
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"nova_task/internal/consts"
|
||||
"nova_task/internal/model"
|
||||
"nova_task/internal/pkg/errs"
|
||||
|
||||
@@ -48,7 +49,7 @@ func (l *BindWalletLogic) BindWallet(req *types.EmailKey) *types.CarvResult {
|
||||
}
|
||||
}
|
||||
|
||||
shareId := l.svcCtx.ConfigModel.GetCarvIoInviterId(l.ctx)
|
||||
shareId := l.svcCtx.ConfigModel.GetInviterId(l.ctx, consts.CarvIoInviterId)
|
||||
|
||||
if pb.ShareUid != shareId || pb.IsBindWallet == 0 {
|
||||
return &types.CarvResult{
|
||||
|
||||
@@ -3,6 +3,7 @@ package carv
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"nova_task/internal/consts"
|
||||
"nova_task/internal/model"
|
||||
"nova_task/internal/pkg/errs"
|
||||
"nova_task/internal/svc"
|
||||
@@ -45,7 +46,7 @@ func (l *DownloadAndBindRoleLogic) DownloadAndBindRole(req *types.EmailKey) *typ
|
||||
}}
|
||||
}
|
||||
|
||||
shareId := l.svcCtx.ConfigModel.GetCarvIoInviterId(l.ctx)
|
||||
shareId := l.svcCtx.ConfigModel.GetInviterId(l.ctx, consts.CarvIoInviterId)
|
||||
if pb.ShareUid != shareId || pb.IsCreateRole == 0 {
|
||||
return &types.CarvResult{
|
||||
Result: &types.Result{IsValid: false},
|
||||
|
||||
@@ -3,6 +3,7 @@ package carv
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"nova_task/internal/consts"
|
||||
"nova_task/internal/model"
|
||||
"nova_task/internal/pkg/errs"
|
||||
|
||||
@@ -48,7 +49,7 @@ func (l *UnlockChapterLogic) UnlockChapter(req *types.UnlockChapterReq) *types.C
|
||||
}
|
||||
}
|
||||
|
||||
shareId := l.svcCtx.ConfigModel.GetCarvIoInviterId(l.ctx)
|
||||
shareId := l.svcCtx.ConfigModel.GetInviterId(l.ctx, consts.CarvIoInviterId)
|
||||
|
||||
if pb.ShareUid != shareId {
|
||||
return &types.CarvResult{
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/spf13/cast"
|
||||
"nova_task/internal/consts"
|
||||
"nova_task/internal/model"
|
||||
"nova_task/internal/pkg/errs"
|
||||
"time"
|
||||
@@ -50,7 +51,7 @@ func (l *WalletCheckInLogic) WalletCheckIn(req *types.EmailKey) *types.CarvResul
|
||||
}
|
||||
}
|
||||
|
||||
shareId := l.svcCtx.ConfigModel.GetCarvIoInviterId(l.ctx)
|
||||
shareId := l.svcCtx.ConfigModel.GetInviterId(l.ctx, consts.CarvIoInviterId)
|
||||
|
||||
if pb.ShareUid != shareId {
|
||||
return &types.CarvResult{
|
||||
|
||||
Reference in New Issue
Block a user