From 7bff0b2307df9fe7edc7924793819047b5c7e856 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 29 Jun 2022 15:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 7a1a9897e..beb88373d 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -1103,6 +1103,9 @@ func updateNewUserAcitivity(currentUserActivity map[int64]map[int64]int64, userA } func setUniqueUserId(jsonString string, value map[int64]int64) (string, int) { + if value == nil { + value = make(map[int64]int64, 0) + } userIdArrays := strings.Split(jsonString, ",") for _, userIdStr := range userIdArrays { userIdInt, err := strconv.ParseInt(userIdStr, 10, 64)