diff --git a/app/db/db_order.go b/app/db/db_order.go index db08e27..4f11f47 100644 --- a/app/db/db_order.go +++ b/app/db/db_order.go @@ -498,7 +498,7 @@ func VirtualCoinOrderRelateDeleteByOid(sess *xorm.Session, oid int64, pvd string return 1, nil } func TikTokTeamOrderRelateDeleteByOid(sess *xorm.Session, oid int64, pvd string) (int64, error) { - _, err := Db.Where("oid=? and pvd=?", oid, pvd).Delete(model.TikTokTeamOrderRelate{}) + _, err := sess.Where("oid=? and pvd=?", oid, pvd).Delete(model.TikTokTeamOrderRelate{}) if err != nil { return 0, err }