This commit is contained in:
Leufolium 2024-08-06 18:03:59 +08:00
parent f73d0f9a75
commit 99e9c625cd
1 changed files with 1 additions and 8 deletions

View File

@ -4443,15 +4443,8 @@ func (s *Service) OpUpdateZoneThirdPartner(ctx *gin.Context, req *zone_third_par
} }
zid := req.ZoneThirdPartner.GetZid() zid := req.ZoneThirdPartner.GetZid()
// 如果更新代运营,则删除旧代运营及协作者团队 // 如果更新代运营,则移除协作者团队
if req.ZoneThirdPartner.ThirdPartnerMid != nil { if req.ZoneThirdPartner.ThirdPartnerMid != nil {
_, err := _DefaultZoneThirdPartner.OpDeleteByZid(ctx, zid)
if err != nil {
logger.Error("OpDelete fail, id: %v, err: %v", zid, err)
ec = errcode.ErrCodeZoneThirdPartnerSrvFail
return
}
zclist, err := _DefaultZoneCollaborator.OpList(ctx, &zone_collaborator_proto.OpListReq{ zclist, err := _DefaultZoneCollaborator.OpList(ctx, &zone_collaborator_proto.OpListReq{
Zid: goproto.Int64(zid), Zid: goproto.Int64(zid),
}) })