|
|
|
@ -12,7 +12,6 @@ declare (strict_types=1); |
|
|
|
|
|
|
|
|
|
namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
use app\common\enum\order\refund\RefundType as RefundTypeEnum; |
|
|
|
|
use think\response\Json; |
|
|
|
|
use app\api\model\OrderRefund as OrderRefundModel; |
|
|
|
|
|
|
|
|
@ -92,14 +91,8 @@ class Refund extends Controller |
|
|
|
|
{ |
|
|
|
|
// 售后单详情 |
|
|
|
|
$model = OrderRefundModel::getDetail($orderRefundId, false); |
|
|
|
|
if($model['type']==RefundTypeEnum::EXCHANGE){ |
|
|
|
|
if ($model->huanhuo($this->postForm())) { |
|
|
|
|
return $this->renderSuccess([], '操作成功'); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if ($model->delivery($this->postForm())) { |
|
|
|
|
return $this->renderSuccess([], '操作成功'); |
|
|
|
|
} |
|
|
|
|
if ($model->delivery($this->postForm())) { |
|
|
|
|
return $this->renderSuccess([], '操作成功'); |
|
|
|
|
} |
|
|
|
|
return $this->renderError($model->getError() ?: '提交失败'); |
|
|
|
|
} |
|
|
|
|