diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index bc9d312..02b3190 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -148,7 +148,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask one, _ := db.QueryNativeStringSess(session, sql) for _, v := range uids { - if userStatusList[zhios_order_relate_utils.StrToInt(v)]["status"] != "1" { + if userStatusList[zhios_order_relate_utils.StrToInt(v)] != nil && userStatusList[zhios_order_relate_utils.StrToInt(v)]["status"] != "1" { userStatusList[zhios_order_relate_utils.StrToInt(v)]["date"] = time.Now().Format("2006-01-02") for _, v1 := range one { if v1["uid"] == v {