Refactor code

pull/141/head
wenxu12345 3 years ago
parent 8883701297
commit a4b6cb3232

@ -78,7 +78,7 @@ func InsertFriendApplication(friendRequest *db.FriendRequest, args map[string]in
}
friendRequest.CreateTime = time.Now()
u := dbConn.Debug().Model(friendRequest).Updates(args)
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)
//u := dbConn.Table("friend_requests").Where("from_user_id=? and to_user_id=?",

Loading…
Cancel
Save