作者 李宇航

合并分支 'lyh-server' 到 'master'

gx分类查看是否拥有下级



查看合并请求 !1514
@@ -77,6 +77,9 @@ class CategoryController extends BaseController @@ -77,6 +77,9 @@ class CategoryController extends BaseController
77 * @time :2025/3/19 14:38 77 * @time :2025/3/19 14:38
78 */ 78 */
79 public function get3283Lists(&$category,$filed){ 79 public function get3283Lists(&$category,$filed){
  80 + if(!isset($this->map['title'])){
  81 + $this->map['pid'] = $this->map['pid'] ?? 0;
  82 + }
80 $list = $category->list($this->map,['sort','id'],$filed); 83 $list = $category->list($this->map,['sort','id'],$filed);
81 $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST);//获取模版id 84 $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_LIST);//获取模版id
82 foreach ($list as $k =>$v){ 85 foreach ($list as $k =>$v){