|
@@ -272,10 +272,14 @@ func DealReportInfo(report *reportService.ReportDTO, isLogin bool, userId int) (
|
|
|
}
|
|
|
//最热最新的时候使用
|
|
|
productList := append(packageList, product)
|
|
|
- for _, productItem := range productList {
|
|
|
- if productItem.SaleStatus == "on_sale" {
|
|
|
- report.Show = true
|
|
|
- break
|
|
|
+ if len(productList) == 0 {
|
|
|
+ report.Show = true
|
|
|
+ } else {
|
|
|
+ for _, productItem := range productList {
|
|
|
+ if productItem.SaleStatus == "on_sale" {
|
|
|
+ report.Show = true
|
|
|
+ break
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if isLogin {
|