Move to inner.

This commit is contained in:
lishuang 2020-06-19 23:17:56 +08:00
parent 51c81e19af
commit d052f75a1c

View File

@ -960,9 +960,11 @@ func (this *MatterService) WrapParentDetail(request *http.Request, matter *Matte
panic(result.BadRequest("matter cannot be nil."))
}
puuid := matter.Puuid
tmpMatter := matter
//when self not root.
if matter.Uuid != MATTER_ROOT {
puuid := matter.Puuid
tmpMatter := matter
for puuid != MATTER_ROOT {
pFile := this.matterDao.CheckByUuid(puuid)
tmpMatter.Parent = pFile