瀏覽代碼

逻辑图分类下无子分类时缩略图列表fix

zwxi 5 月之前
父節點
當前提交
16c21b3906
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controllers/sandbox/sandbox.go

+ 3 - 0
controllers/sandbox/sandbox.go

@@ -1724,6 +1724,9 @@ func (this *SandboxController) ListV2() {
 		if len(childIds) > 0 {
 			ids := utils.IntArr2joinString(childIds,",")
 			condition += " AND sandbox_classify_id IN(" + ids + ") "
+		} else {
+			condition += " AND sandbox_classify_id = ? "
+			pars = append(pars, sandboxClassifyId)
 		}
 	}
 	if keyWord != "" {