mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 11:20:26 +08:00
优化代码
This commit is contained in:
@@ -32,6 +32,8 @@ func (this *IPLibraryArtifactService) CreateIPLibraryArtifact(ctx context.Contex
|
|||||||
return nil, errors.New("decode meta failed: " + err.Error())
|
return nil, errors.New("decode meta failed: " + err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO 更新数据库中的省市县等信息?
|
||||||
|
|
||||||
artifactId, err := models.SharedIPLibraryArtifactDAO.CreateArtifact(tx, req.Name, req.FileId, 0, meta)
|
artifactId, err := models.SharedIPLibraryArtifactDAO.CreateArtifact(tx, req.Name, req.FileId, 0, meta)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user