diff --git a/svc/reward_commission.go b/svc/reward_commission.go index 06e4edd..43f88c7 100644 --- a/svc/reward_commission.go +++ b/svc/reward_commission.go @@ -83,7 +83,7 @@ func GetRewardCommission(engine *xorm.Engine, rmd *md.CommissionParam, isShare b "key": "is_open", "value": 1, }) - if err != nil { + if err != nil || userPublicPlatoonSetting == nil { return 0, 0, 0, 0, nil, nil } var reward = &md.PublicPlatoonRelateCommissionResp{}