| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace addons\YunfastPay\backend\controllers;
- use addons\YunfastPay\common\services\OrderService;
- /**
- * 支付订单控制器
- * @package addons\YunfastPay\backend\controllers
- */
- class OrderController extends BaseController
- {
- public $enableCsrfValidation = false;
- /**
- * @var OrderService
- */
- private $service;
- public function init()
- {
- parent::init();
- $this->service = new OrderService(
- ['mall_id' => $this->mall_id]
- );
- }
- /**
- * 设置页面
- *
- * @return void
- */
- public function actionIndex()
- {
- if ($this->request->isAjax) {
- return $this->success(
- 'ok',
- $this->service->getPageList(
- array_merge(
- $this->request->post(),
- $this->request->get()
- )
- )
- );
- }
-
- return $this->render('index');
- }
- /**
- * 分账信息
- *
- * @return void
- */
- public function actionSplitBill()
- {
- if ($this->request->isAjax) {
- return $this->success(
- 'ok',
- $this->service->getSplitBill(
- $this->request->get('id')
- )
- );
- }
- }
- }
|