|
|
@@ -264,6 +264,23 @@ class ServiceOrderController extends BaseApiController
|
|
|
return $this->success('已提交改约', [], 1, 1);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 提交退款申请
|
|
|
+ * @return \think\response\Json
|
|
|
+ */
|
|
|
+ public function approvalRefund()
|
|
|
+ {
|
|
|
+ $params = (new ServiceOrderValidate())->post()->goCheck('changePrice', [
|
|
|
+ 'user_id' => $this->userId,
|
|
|
+ 'user_info' => $this->userInfo
|
|
|
+ ]);
|
|
|
+ $result = ServiceOrderLogic::approvalRefund($params);
|
|
|
+ if (false === $result) {
|
|
|
+ return $this->fail(ServiceOrderLogic::getError());
|
|
|
+ }
|
|
|
+ return $this->success('已提交申请,等待客服确认中', [], 1, 1);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|