123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\controller\live;
-
-
- use app\admin\logic\live\LiveRoomLogic;
- use app\common\basics\AdminBase;
- use app\common\server\JsonServer;
- use app\admin\logic\live\LiveGoodsLogic;
- use app\admin\validate\live\LiveGoodsValidate;
-
-
-
- class LiveGoods extends AdminBase
- {
-
-
-
- public function lists()
- {
- if ($this->request->isAjax()) {
- $get = $this->request->get();
- $lists = LiveGoodsLogic::lists($get);
- return JsonServer::success('', $lists);
- }
- return view('', [
- 'shop' => LiveRoomLogic::shopLists()
- ]);
- }
-
-
-
-
- public function audit()
- {
- if ($this->request->isAjax()) {
- $params = (new LiveGoodsValidate())->goCheck('audit');
- $result = LiveGoodsLogic::audit($params);
- if ($result !== true) {
- return JsonServer::error(LiveGoodsLogic::getError());
- }
- return JsonServer::success('操作成功');
- }
- $id = $this->request->get('id');
- return view('', [
- 'detail' => LiveGoodsLogic::detail($id),
- ]);
- }
-
-
-
-
-
- public function detail()
- {
- $params = (new LiveGoodsValidate())->goCheck('detail');
- return view('', [
- 'detail' => LiveGoodsLogic::detail($params),
- ]);
- }
-
-
-
-
- public function del()
- {
- if ($this->request->isAjax()) {
- $params = (new LiveGoodsValidate())->goCheck('del');
- $result = LiveGoodsLogic::del($params);
- if ($result !== true) {
- return JsonServer::error(LiveGoodsLogic::getError());
- }
- return JsonServer::success('操作成功');
- }
- }
-
- }
|