Browse Source

轮播图

afa 6 months ago
parent
commit
7e03b9f7bf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/api/controller/Home.php

+ 2 - 1
application/api/controller/Home.php

@@ -39,10 +39,11 @@ class Home extends Api
             'banner_list' => [],
             'notice_list' => []
         ];
-        // banner
+        // banner        
         $resp['banner_list'] = $announcement
             ->field('id,title as title,img_url,createtime')
             ->where('type_id', $announcement::Banner)
+            ->where('find_in_set(:id,sub_type_id)',['id'=>11])
             ->where('status', $announcement::Normal)
             ->where('is_show', $announcement::Normal)
             ->where('to_lang', $this->lan)