diff --git a/rule/regional_agent.go b/rule/regional_agent.go index 39d7692..a33f60d 100644 --- a/rule/regional_agent.go +++ b/rule/regional_agent.go @@ -247,6 +247,9 @@ func makeSystemData(engine *xorm.Engine, regionalAgentRegion *model.RegionalAgen if err != nil { return nil, amount, 0, err } + if regionalAgentRegionData == nil { + return nil, amount, 0, err + } var divideAmount float64 = 0 //查询对应的等级方案 scheme, err := db.GetCountByRegionalAgentSchemeInfoByParams(engine, map[string]interface{}{