🎨 Improve bazaar

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-08 22:31:35 +08:00
parent 3e808209e5
commit 0cec542db2
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 1 deletions

View file

@ -62,6 +62,7 @@ func getUpdatedPackage(c *gin.Context) {
if !util.ParseJsonArgs(arg, ret, util.BindJsonArg("frontend", true, &frontend)) {
return
}
plugins, widgets, icons, themes, templates := model.GetUpdatedPackages(frontend)
ret.Data = map[string]interface{}{
"plugins": plugins,

View file

@ -132,7 +132,7 @@ func installPackage(data []byte, installPath string) (err error) {
srcPath = filepath.Join(unzipPath, dirs[0].Name())
}
if err = filelock.Copy(srcPath, installPath); err != nil {
if err = filelock.CopyNewtimes(srcPath, installPath); err != nil {
return
}
return