fix agentService
This commit is contained in:
@@ -63,7 +63,7 @@ SystemConfig:
|
||||
ThreeVerify: false
|
||||
WechatH5:
|
||||
AppID: "wxa581992dc74d860e"
|
||||
AppSecret: "ba37510206df321279222cecb8614e00"
|
||||
AppSecret: "4de1fbf521712247542d49907fcd5dbf"
|
||||
Query:
|
||||
ShareLinkExpire: 604800 # 7天 = 7 * 24 * 60 * 60 = 604800秒
|
||||
AdminConfig:
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -55,7 +55,8 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
GrantTypeFace string = "face"
|
||||
GrantTypeFace string = "face"
|
||||
AuthorizationGrantTypeSms = "sms"
|
||||
)
|
||||
const (
|
||||
AuthorizationStatusPending = "pending"
|
||||
|
||||
Reference in New Issue
Block a user