Refundment.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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\order;
  10. use app\admin\controller\Auth;
  11. use think\facade\Request;
  12. use mall\response\Response;
  13. use think\facade\View;
  14. use app\admin\service\order\Refundment as RefundmentService;
  15. class Refundment extends Auth {
  16. public function index(){
  17. if(Request::isAjax()){
  18. $list = RefundmentService::getList(Request::param());
  19. return Response::returnArray("ok",0,$list['data'],$list['count']);
  20. }
  21. return View::fetch();
  22. }
  23. public function detail(){
  24. try{
  25. return View::fetch("",RefundmentService::detail(Request::param("id")));
  26. }catch (\Exception $ex){
  27. $this->error($ex->getMessage());
  28. }
  29. }
  30. }