소스 검색

新轮播图

lizhen_gitee 1 년 전
부모
커밋
394c47089e
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 3
      application/api/controller/company/Index.php
  2. 1 1
      application/api/controller/company/Newbanner.php

+ 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);