From f08941c0bd2267da0334ee18500e00ee494313da Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 1 Dec 2021 14:39:29 +0800 Subject: [PATCH] demo merge into project --- pkg/common/db/mysql_model/im_mysql_model/user_model.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/common/db/mysql_model/im_mysql_model/user_model.go b/pkg/common/db/mysql_model/im_mysql_model/user_model.go index f378fdbb5..cbf87f7fe 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/user_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/user_model.go @@ -121,7 +121,10 @@ func SelectAllUID() ([]string, error) { if err != nil { return uid, err } - rows, _ := dbConn.Raw("select uid from user").Rows() + rows, err := dbConn.Raw("select uid from user").Rows() + if err != nil { + return uid, err + } defer rows.Close() var strUID string for rows.Next() {