Ver Fonte

后台管理系统

lyh há 2 anos atrás
pai
commit
0008a6f0de
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      app/Services/Api/GoodsCategoryService.php

+ 4 - 0
app/Services/Api/GoodsCategoryService.php

@@ -81,6 +81,10 @@ class GoodsCategoryService extends BaseService
                     $query->where('a.pid', $pid);
                 }
 
+                if (isset($params['is_recommend']) && $params['is_recommend'] != '') {
+                    $query->where('a.is_recommend', $params['is_recommend']);
+                }
+
                 // 商户
                 $merchId = isset($params['merch_id']) ? $params['merch_id'] : 0;
                 if ($merchId > 0) {