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