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