| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace ghs\controllers;
- use bizGhs\order\services\OrderSendService;
- use bizGhs\order\services\OrderService;
- use Yii;
- use common\components\util;
- class OrderSendController extends BaseController
- {
- public function actionDetail()
- {
- $id = Yii::$app->request->get('id', 0);
- $order = OrderService::getById($id);
- OrderService::valid($order, $this->shopId);
- $list = OrderSendService::sendList($order);
- util::success($list);
- }
- public function actionDeliver()
- {
- $post = Yii::$app->request->post();
- $id = isset($post['id']) ? $post['id'] : 0;
- $order = OrderService::getById($id);
- OrderService::valid($order, $this->shopId);
- $post['sjId'] = $this->sjId;
- $post['orderSn'] = $order['orderSn'];
- OrderSendService::deliver($post);
- }
- public function actionReach()
- {
- $post = Yii::$app->request->post();
- $id = isset($post['id']) ? $post['id'] : 0;
- $order = OrderService::getById($id);
- OrderService::valid($order, $this->shopId);
- OrderSendService::reach($order);
- }
- }
|