Log.php 968 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\admin\controller\system;
  10. use app\admin\controller\Auth;
  11. use mall\response\Response;
  12. use think\facade\Request;
  13. use think\facade\View;
  14. use app\admin\service\system\Log as LogService;
  15. class Log extends Auth {
  16. /**
  17. * 列表
  18. * @return string|\think\response\Json
  19. */
  20. public function index(){
  21. if(Request::isAjax()){
  22. $list = LogService::getList(Request::param());
  23. return Response::returnArray("ok",0,$list["data"],$list["count"]);
  24. }
  25. return View::fetch();
  26. }
  27. }