Merge pull request '1' (#683) from feat-IRONFANS-192-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/683
This commit is contained in:
chenhao 2024-08-06 18:04:29 +08:00
commit 45cb1685b1
1 changed files with 1 additions and 8 deletions

View File

@ -4445,15 +4445,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),
})