afa 6 bulan lalu
induk
melakukan
7e03b9f7bf
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  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)