1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\admin\controller\order;
- use app\admin\controller\Auth;
- use think\facade\Request;
- use mall\response\Response;
- use think\facade\View;
- use app\admin\service\order\Collection as CollectionService;
- class Collection extends Auth {
-
- public function index(){
- try{
- if(Request::isAjax()){
- $list = CollectionService::getList(Request::param());
- return Response::returnArray("ok",0,$list['data'],$list['count']);
- }
- return View::fetch();
- }catch (\Exception $ex){
- return Response::returnArray($ex->getMessage(),1);
- }
- }
-
- public function detail(){
- try{
- return View::fetch("",CollectionService::detail(Request::param("id")));
- }catch (\Exception $ex){
- $this->error($ex->getMessage());
- }
- }
-
- }
|