新增处方上报处方平台,未开发完毕,修改药品订单支付金额为0.01
This commit is contained in:
@@ -155,6 +155,30 @@ class Prescription
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 上报处方
|
||||
* @param array $arg
|
||||
* @return array
|
||||
*/
|
||||
public function reportPrescription(array $arg): array
|
||||
{
|
||||
$option = [
|
||||
"json" => $arg
|
||||
];
|
||||
|
||||
try {
|
||||
$response = $this->httpRequest($this->api_url . $this->version . '/preOrder/receivePreOrder', $option);
|
||||
if (empty($response)){
|
||||
// 返回值为空
|
||||
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
|
||||
}
|
||||
|
||||
return $response;
|
||||
} catch (GuzzleException $e) {
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求封装
|
||||
* @param string $path
|
||||
|
||||
Reference in New Issue
Block a user