fix: Solve the issue of being unable to filter applications when the operating system is aarch64. (#10620)

This commit is contained in:
CityFun 2025-10-13 21:28:53 +08:00 committed by GitHub
parent 4597cb26a1
commit 597000ce52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,11 @@ func (a AppService) PageApp(ctx *gin.Context, req request.AppSearch) (interface{
if err != nil {
return nil, err
}
opts = append(opts, appRepo.WithArch(info.KernelArch))
kernelArch := info.KernelArch
if kernelArch == "aarch64" {
kernelArch = "arm64"
}
opts = append(opts, appRepo.WithArch(kernelArch))
}
if len(req.Tags) != 0 {
tags, err := tagRepo.GetByKeys(req.Tags)