| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\pt;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\pt\PtActivityBannerForm;
- use app\modules\admin\models\pt\PtActivityOrderForm;
- class PtActivityOrderController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取订单
- */
- public function actionList()
- {
- $form = new PtActivityOrderForm();
- $form->attributes = get_params();
- $res = $form->search();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取订单信息
- */
- public function actionGetPtInfo()
- {
- $form = new PtActivityOrderForm();
- $form->attributes = get_params();
- $res = $form->getPtInfo();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 处理异常(退款)
- */
- public function actionLoserHandle()
- {
- $form = new PtActivityOrderForm();
- $pt_number = get_params('pt_number');
- $res = $form->loserHandle($pt_number);
- return $this->asJson($res);
- }
- }
|