| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- namespace business\controllers;
- use biz\order\services\OrderService;
- use Yii;
- use yii\data\Pagination;
- use yii\helpers\Json;
- use common\models\xhOrder;
- use common\models\xhOrderGoods;
- use common\components\util;
- use common\components\stringUtil;
- use common\components\weixinUtil;
- use common\services\xhOrderService;
- use common\services\xhGoodsService;
- use common\services\xhTMessageService;
- use common\services\xhUserService;
- use common\services\xhUserAlipayService;
- use common\components\page;
- use common\components\configDict;
- class OrderController extends BaseController
- {
-
- public function actionList()
- {
- $get = Yii::$app->request->get();
- //组建where
- $status = isset($get['status']) ? $get['status'] : 0;
- $search = isset($get['search']) ? $get['search'] : '';
- $where = ['merchantId' => $this->merchantId, 'status' => $status];
- if (!empty($search)) {
- if (stringUtil::isMobieNumber($search)) {
- $where['receiveMobile'] = $search;
- } else {
- $where['id'] = $search;
- }
- }
-
- $list = OrderService::getOrderList($where);
- util::success($list);
- }
-
- //发货管理 shish 2019.11.30
- public function actionSend()
- {
-
- }
-
- //向快递公司发起配送需求
- public function actionExpress()
- {
-
- }
-
- //取消快递
- public function actionCancelExpress()
- {
- $sendSide = 1;
- $sendTime = '10:21';
- }
- //添加小费
- public function actionAddTip()
- {
- }
- //结果回调通知
- public function actionExpressCallback()
- {
- }
-
- //快递服务提供方
- public function actionExpressProvide()
- {
- $data = ['id' => 1, 'name' => '达达'];
- util::success($data);
- }
- }
|