| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Created by PhpStorm
- * Author: 向往那片天空
- * Date: 2020/6/12
- * Time: 16:08
- * 微信/QQ: 250023777
- * 格言: 抓住中心,宁精勿杂,宁专勿多
- */
- namespace app\api\controller\store;
- use app\Request;
- use think\facade\Db;
- class StorePopimg
- {
- /**
- * 首页弹窗
- * @param Request $request
- * @return mixed
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function index(Request $request)
- {
- $data = Db::name('store_popimg')->where('id', 1)->find();
- return app('json')->success('ok', $data);
- }
- }
|