| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace addons\OperationCenter\api\modules\v1\controllers;
- use addons\OperationCenter\api\services\CenterService;
- use api\controllers\OnAuthController;
- /**
- * 订单控制器
- *
- * OrderController class
- * @package addons\OperationCenter\api\modules\v1\controllers
- */
- class OrderController extends OnAuthController
- {
- /**
- * @var string
- */
- public $modelClass = '';
- /**
- * 获取下单限制
- *
- * @return string
- */
- public function actionLimit()
- {
- $service = new CenterService(['mall_id' => $this->mall_id]);
- return $this->success('ok', ['limit' => (int)$service->getOrderLimit($this->user_id)]);
- }
- }
|