fix agentService

This commit is contained in:
liangzai 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"

View File

@ -1,8 +0,0 @@
module script
go 1.23.4
require (
github.com/samber/lo v1.50.0 // indirect
golang.org/x/text v0.22.0 // indirect
)

View File

@ -1,4 +0,0 @@
github.com/samber/lo v1.50.0 h1:XrG0xOeHs+4FQ8gJR97zDz5uOFMW7OwFWiFVzqopKgY=
github.com/samber/lo v1.50.0/go.mod h1:RjZyNk6WSnUFRKK6EyOhsRJMqft3G+pg7dCWHQCWvsc=
golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM=
golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY=