fix agentService
This commit is contained in:
parent
9344532b24
commit
ae59eabe6f
@ -63,7 +63,7 @@ SystemConfig:
|
|||||||
ThreeVerify: false
|
ThreeVerify: false
|
||||||
WechatH5:
|
WechatH5:
|
||||||
AppID: "wxa581992dc74d860e"
|
AppID: "wxa581992dc74d860e"
|
||||||
AppSecret: "ba37510206df321279222cecb8614e00"
|
AppSecret: "4de1fbf521712247542d49907fcd5dbf"
|
||||||
Query:
|
Query:
|
||||||
ShareLinkExpire: 604800 # 7天 = 7 * 24 * 60 * 60 = 604800秒
|
ShareLinkExpire: 604800 # 7天 = 7 * 24 * 60 * 60 = 604800秒
|
||||||
AdminConfig:
|
AdminConfig:
|
||||||
|
@ -193,7 +193,7 @@ func (l *AgentService) AgentCommission(ctx context.Context, agentID int64, order
|
|||||||
|
|
||||||
// AncestorCommission 直推报告上级佣金(奖励型)
|
// AncestorCommission 直推报告上级佣金(奖励型)
|
||||||
func (l *AgentService) AncestorCommission(ctx context.Context, descendantId int64, ancestorId int64, session sqlx.Session) (float64, error) {
|
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 {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ const (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
GrantTypeFace string = "face"
|
GrantTypeFace string = "face"
|
||||||
|
AuthorizationGrantTypeSms = "sms"
|
||||||
)
|
)
|
||||||
const (
|
const (
|
||||||
AuthorizationStatusPending = "pending"
|
AuthorizationStatusPending = "pending"
|
||||||
|
@ -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
|
|
||||||
)
|
|
@ -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=
|
|
Loading…
Reference in New Issue
Block a user