From eda59f8c72efc63fa5bb5fc914c73f5203eed4ff Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 17 Oct 2024 11:37:04 +0800 Subject: [PATCH] 1 --- server/imserver/model/friend.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server/imserver/model/friend.go b/server/imserver/model/friend.go index dfbfeaad..156e3d2f 100644 --- a/server/imserver/model/friend.go +++ b/server/imserver/model/friend.go @@ -14,7 +14,7 @@ var Friend = new (friend) func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64, cb func (error, int64, int64)) { - f5.GetJsStyleDb().Upsert( + f5.GetJsStyleDb().UpsertEx( constant.FRIEND_DB, "t_friend_relationship", [][]string{ @@ -33,7 +33,12 @@ func (this *friend) Force(accountId1 string, accountId2 string, nowTime int64, {"createtime", q5.ToString(nowTime)}, {"modifytime", q5.ToString(nowTime)}, }, - cb) + func (err error, lastInsertId int64, rowsAffected int64) { + cb(err, lastInsertId, rowsAffected) + }, + func (ds *f5.DataSet) bool { + return true + }) } func (this *friend) DeleteSoft(accountId1 string, accountId2 string,