From 3a358a6c3bad4f12205d308b2d0a223bbdd126a7 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 22 Aug 2022 18:00:48 +0800 Subject: [PATCH] =?UTF-8?q?add=20reverse:for=20v1.8.8=20=E5=85=AC=E6=8E=92?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=A0=E5=9B=BA=E5=AE=9A=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/public_platoon_relate_commission.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rule/public_platoon_relate_commission.go b/rule/public_platoon_relate_commission.go index 5cd773f..52a30cc 100644 --- a/rule/public_platoon_relate_commission.go +++ b/rule/public_platoon_relate_commission.go @@ -48,7 +48,7 @@ func AddPublicPlatoonRelateCommission(engine *xorm.Engine, AddPublicPlatoonRelat uniqueIdentifier := strings.Split(userPublicPlatoonRelation.UniqueIdentifier, "-") uniqueIdentifier[1] = param.Uid userPublicPlatoonRelation.UniqueIdentifier = strings.Join(uniqueIdentifier, "-") - updateAffected, err := db.UserPublicPlatoonRelationUpdate(engine.NewSession(), userPublicPlatoonRelation.Id, userPublicPlatoonRelation) + updateAffected, err := db.UserPublicPlatoonRelationUpdate(engine.NewSession(), userPublicPlatoonRelation.Id, userPublicPlatoonRelation, "uid", "unique_identifier") if err != nil { return nil, err } @@ -387,7 +387,7 @@ func DealCommonWealthPunish(engine *xorm.Engine, uid int, reason string) (err er _ = session.Rollback() } params.Uid = -1 - updateAffected, err := db.UserPublicPlatoonRelationUpdate(session, params.Id, params) + updateAffected, err := db.UserPublicPlatoonRelationUpdate(session, params.Id, params, "uid") if err != nil { _ = session.Rollback() return