新增:订单取消支付-1未支付、取消订单-问诊/检测/服务包
This commit is contained in:
@@ -2394,6 +2394,35 @@ class PatientOrderService extends BaseService
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消订单-问诊/检测/服务包
|
||||
* @return array
|
||||
*/
|
||||
public function putCancelPatientOrder(): array
|
||||
{
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$order_no = $this->request->route('order_no');
|
||||
|
||||
Db::beginTransaction();
|
||||
|
||||
try {
|
||||
$OrderService = new OrderService();
|
||||
$result = $OrderService->PatientActiveCancelOrder($order_no);
|
||||
if ($result['status'] != 1) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::HTTP_ERROR, $result['message']);
|
||||
}
|
||||
|
||||
Db::commit();
|
||||
} catch (\Exception $e) {
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::HTTP_ERROR, $e->getMessage());
|
||||
}
|
||||
|
||||
return success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者未完成订单
|
||||
* @param string $patient_id
|
||||
|
||||
Reference in New Issue
Block a user