This commit is contained in:
parent
f73d0f9a75
commit
99e9c625cd
|
@ -4443,15 +4443,8 @@ func (s *Service) OpUpdateZoneThirdPartner(ctx *gin.Context, req *zone_third_par
|
|||
}
|
||||
|
||||
zid := req.ZoneThirdPartner.GetZid()
|
||||
// 如果更新代运营,则删除旧代运营及协作者团队
|
||||
// 如果更新代运营,则移除协作者团队
|
||||
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{
|
||||
Zid: goproto.Int64(zid),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue