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