Browse Source

新轮播图

lizhen_gitee 1 year ago
parent
commit
394c47089e

+ 2 - 3
application/api/controller/company/Index.php

@@ -23,11 +23,10 @@ class Index extends Apic
     //首页轮播
     public function banner(){
         $where = [
-            'company_id' => $this->auth->company_id,
             'status'     => 1,
-            'position'  => 0
+            'position'  => 1
         ];
-        $list = Db::name('banner')->where($where)->order('weigh asc,id asc')->autopage()->select();
+        $list = Db::name('platform_banner')->where($where)->order('weigh asc,id asc')->select();
         $this->success(1,$list);
     }
 

+ 1 - 1
application/api/controller/company/Newbanner.php

@@ -19,7 +19,7 @@ class Newbanner extends Apic
         $where = [
             'company_id' => $this->auth->company_id,
         ];
-        $store = Db::name('banner')->where($where)->order('weigh asc,id asc')->autopage()->select();
+        $store = Db::name('banner')->where($where)->order('weigh asc,id asc')->select();
         $store = list_domain_image($store,['image']);
 
         $this->success(1,$store);