Explorar o código

后台管理系统

lyh %!s(int64=2) %!d(string=hai) anos
pai
achega
0008a6f0de
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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) {