OrderController.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace business\controllers;
  3. use biz\order\services\OrderService;
  4. use Yii;
  5. use yii\data\Pagination;
  6. use yii\helpers\Json;
  7. use common\models\xhOrder;
  8. use common\models\xhOrderGoods;
  9. use common\components\util;
  10. use common\components\stringUtil;
  11. use common\components\weixinUtil;
  12. use common\services\xhOrderService;
  13. use common\services\xhGoodsService;
  14. use common\services\xhTMessageService;
  15. use common\services\xhUserService;
  16. use common\services\xhUserAlipayService;
  17. use common\components\page;
  18. use common\components\configDict;
  19. class OrderController extends BaseController
  20. {
  21. public function actionList()
  22. {
  23. $get = Yii::$app->request->get();
  24. //组建where
  25. $status = isset($get['status']) ? $get['status'] : 0;
  26. $search = isset($get['search']) ? $get['search'] : '';
  27. $where = ['merchantId' => $this->merchantId, 'status' => $status];
  28. if (!empty($search)) {
  29. if (stringUtil::isMobieNumber($search)) {
  30. $where['receiveMobile'] = $search;
  31. } else {
  32. $where['id'] = $search;
  33. }
  34. }
  35. $list = OrderService::getOrderList($where);
  36. util::success($list);
  37. }
  38. //发货管理 shish 2019.11.30
  39. public function actionSend()
  40. {
  41. }
  42. //向快递公司发起配送需求
  43. public function actionExpress()
  44. {
  45. }
  46. //取消快递
  47. public function actionCancelExpress()
  48. {
  49. $sendSide = 1;
  50. $sendTime = '10:21';
  51. }
  52. //添加小费
  53. public function actionAddTip()
  54. {
  55. }
  56. //结果回调通知
  57. public function actionExpressCallback()
  58. {
  59. }
  60. //快递服务提供方
  61. public function actionExpressProvide()
  62. {
  63. $data = ['id' => 1, 'name' => '达达'];
  64. util::success($data);
  65. }
  66. }