Payment.php 887 B

1234567891011121314151617181920212223242526272829
  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\api\controller;
  10. use think\facade\Request;
  11. use app\api\service\Payment as PaymentService;
  12. class Payment extends Base {
  13. /**
  14. * 支付列表
  15. * @return \think\response\Json
  16. */
  17. public function index(){
  18. try {
  19. return $this->returnAjax("ok",1,PaymentService::getList(Request::param()));
  20. }catch (\Exception $ex){
  21. return $this->returnAjax($ex->getMessage(),$ex->getCode());
  22. }
  23. }
  24. }