新增未开发路由
This commit is contained in:
@@ -51,4 +51,31 @@ class InquiryController extends AbstractController
|
||||
$data = $InquiryService->getPatientInquiryCase();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测快速、购药订单分配医生状态
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getInquiryAssign(): ResponseInterface
|
||||
{
|
||||
$InquiryService = new InquiryService();
|
||||
$data = $InquiryService->getInquiryAssign();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增医生评价
|
||||
* @return ResponseInterface
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function addInquiryEvaluation(): ResponseInterface
|
||||
{
|
||||
$request = $this->container->get(InquiryRequest::class);
|
||||
$request->scene('addInquiryEvaluation')->validateResolved();
|
||||
|
||||
$InquiryService = new InquiryService();
|
||||
$data = $InquiryService->addInquiryEvaluation();
|
||||
return $this->response->json($data);
|
||||
}
|
||||
}
|
||||
@@ -98,24 +98,24 @@ class UserController extends AbstractController
|
||||
// return $this->response->json($pay_config);
|
||||
|
||||
// 发起退款
|
||||
$WechatPay = new WechatPay(1);
|
||||
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = 1;
|
||||
$order_inquiry = OrderInquiry::getOne($params);
|
||||
|
||||
|
||||
$options = array();
|
||||
$options['transaction_id'] = $order_inquiry['escrow_trade_no'];
|
||||
$options['out_refund_no'] = $order_inquiry['inquiry_refund_no'];
|
||||
$options['reason'] = "退款原因";
|
||||
$options['amount'] = [
|
||||
'refund' => (int)1,
|
||||
'total' => (int)1,
|
||||
'currency' => "CNY",
|
||||
];
|
||||
|
||||
$result = $WechatPay->refund($options);
|
||||
dump($result);
|
||||
// $WechatPay = new WechatPay(1);
|
||||
//
|
||||
// $params = array();
|
||||
// $params['order_inquiry_id'] = 1;
|
||||
// $order_inquiry = OrderInquiry::getOne($params);
|
||||
//
|
||||
//
|
||||
// $options = array();
|
||||
// $options['transaction_id'] = $order_inquiry['escrow_trade_no'];
|
||||
// $options['out_refund_no'] = $order_inquiry['inquiry_refund_no'];
|
||||
// $options['reason'] = "退款原因";
|
||||
// $options['amount'] = [
|
||||
// 'refund' => (int)1,
|
||||
// 'total' => (int)1,
|
||||
// 'currency' => "CNY",
|
||||
// ];
|
||||
//
|
||||
// $result = $WechatPay->refund($options);
|
||||
// dump($result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user