新增处方上报处方平台,未开发完毕,修改药品订单支付金额为0.01

This commit is contained in:
2023-04-04 13:54:26 +08:00
parent afa721104e
commit 1651896958
6 changed files with 319 additions and 218 deletions
+24
View File
@@ -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