优化代码

This commit is contained in:
GoEdgeLab
2022-08-23 21:42:05 +08:00
parent b11c1dc01c
commit 79628ccbce

View File

@@ -32,6 +32,8 @@ func (this *IPLibraryArtifactService) CreateIPLibraryArtifact(ctx context.Contex
return nil, errors.New("decode meta failed: " + err.Error())
}
// TODO 更新数据库中的省市县等信息?
artifactId, err := models.SharedIPLibraryArtifactDAO.CreateArtifact(tx, req.Name, req.FileId, 0, meta)
if err != nil {
return nil, err