PtActivityOrderController.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers\pt;
  8. use app\modules\admin\controllers\BaseController;
  9. use app\modules\admin\models\pt\PtActivityBannerForm;
  10. use app\modules\admin\models\pt\PtActivityOrderForm;
  11. class PtActivityOrderController extends BaseController
  12. {
  13. /**
  14. * @return \yii\web\Response
  15. * 获取订单
  16. */
  17. public function actionList()
  18. {
  19. $form = new PtActivityOrderForm();
  20. $form->attributes = get_params();
  21. $res = $form->search();
  22. return $this->asJson($res);
  23. }
  24. /**
  25. * @return \yii\web\Response
  26. * 获取订单信息
  27. */
  28. public function actionGetPtInfo()
  29. {
  30. $form = new PtActivityOrderForm();
  31. $form->attributes = get_params();
  32. $res = $form->getPtInfo();
  33. return $this->asJson($res);
  34. }
  35. /**
  36. * @return \yii\web\Response
  37. * 处理异常(退款)
  38. */
  39. public function actionLoserHandle()
  40. {
  41. $form = new PtActivityOrderForm();
  42. $pt_number = get_params('pt_number');
  43. $res = $form->loserHandle($pt_number);
  44. return $this->asJson($res);
  45. }
  46. }