diff --git a/pkg/common/db/mysql_model/im_mysql_model/friend_request_model.go b/pkg/common/db/mysql_model/im_mysql_model/friend_request_model.go index 693bd71ac..bcb734281 100644 --- a/pkg/common/db/mysql_model/im_mysql_model/friend_request_model.go +++ b/pkg/common/db/mysql_model/im_mysql_model/friend_request_model.go @@ -78,6 +78,7 @@ func InsertFriendApplication(friendRequest *db.FriendRequest, args map[string]in } friendRequest.CreateTime = time.Now() + args["create_time"] = friendRequest.CreateTime u := dbConn.Model(friendRequest).Updates(args) //u := dbConn.Table("friend_requests").Where("from_user_id=? and to_user_id=?", // friendRequest.FromUserID, friendRequest.ToUserID).Update(&friendRequest)