RefundController.php 707 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. //退款退货
  3. namespace ghs\controllers;
  4. use Yii;
  5. use bizGhs\order\classes\RefundOrderClass;
  6. use common\components\util;
  7. use bizGhs\product\classes\ProductClass;
  8. class RefundController extends BaseController
  9. {
  10. //列表
  11. public function actionList()
  12. {
  13. $get = Yii::$app->request->get();
  14. $where = [];
  15. $where['shopId'] = $this->shopId;
  16. $list = RefundOrderClass::getOrderList($where);
  17. util::success($list);
  18. }
  19. public function actionDetail()
  20. {
  21. $orderSn = Yii::$app->request->get('orderSn', '');
  22. $orderData = RefundOrderClass::getOrderDetailByRelateOrder($orderSn, $this->shopId);
  23. util::success($orderData);
  24. }
  25. }