fix agentService

This commit is contained in:
2025-06-09 22:24:19 +08:00
parent 9344532b24
commit ae59eabe6f
5 changed files with 4 additions and 15 deletions

View File

@@ -63,7 +63,7 @@ SystemConfig:
ThreeVerify: false
WechatH5:
AppID: "wxa581992dc74d860e"
AppSecret: "ba37510206df321279222cecb8614e00"
AppSecret: "4de1fbf521712247542d49907fcd5dbf"
Query:
ShareLinkExpire: 604800 # 7天 = 7 * 24 * 60 * 60 = 604800秒
AdminConfig:

View File

@@ -193,7 +193,7 @@ func (l *AgentService) AgentCommission(ctx context.Context, agentID int64, order
// AncestorCommission 直推报告上级佣金(奖励型)
func (l *AgentService) AncestorCommission(ctx context.Context, descendantId int64, ancestorId int64, session sqlx.Session) (float64, error) {
agentModel, err := l.AgentModel.FindOneByUserId(ctx, ancestorId)
agentModel, err := l.AgentModel.FindOne(ctx, ancestorId)
if err != nil {
return 0, err
}

View File

@@ -55,7 +55,8 @@ const (
)
const (
GrantTypeFace string = "face"
GrantTypeFace string = "face"
AuthorizationGrantTypeSms = "sms"
)
const (
AuthorizationStatusPending = "pending"