123456789101112131415161718192021222324252627 |
- <?php
- namespace app\api\controller\mall;
- use app\common\controller\Api;
- /**
- * 订单退款
- * @inheritdoc
- */
- class OrderRefund extends Api
- {
- /**
- * 售后详情
- * @ApiParams (name=order_info_id,description="子订单ID")
- */
- public function show(){
- $data=$this->_validate([
- 'order_info_id'=>['require'],
- ]);
- $user=$this->auth->getUser();
- $orderInfo=$user
- ->orderInfo()
- ->with(['refund','refunds','orders'])
- ->findOrFail($data['order_info_id']);
- $this->success('',$orderInfo);
- }
- }
|