bianjunhui 1 rok pred
rodič
commit
5dbab64b62
1 zmenil súbory, kde vykonal 27 pridanie a 0 odobranie
  1. 27 0
      application/api/controller/Appindex.php

+ 27 - 0
application/api/controller/Appindex.php

@@ -0,0 +1,27 @@
+<?php
+
+namespace app\api\controller;
+
+use app\common\controller\Api;
+use think\Db;
+
+/**
+ * 首页接口
+ */
+class Appindex extends Api
+{
+    protected $noNeedLogin = ['*'];
+    protected $noNeedRight = ['*'];
+
+    /**
+     * 首页
+     *
+     */
+    public function getBanner()
+    {
+
+        $where['status']=1;
+        $banner = Db::name('message_read')->where($where)->select();
+        $this->success('',$banner);
+    }
+}