新增ca认证对接、新增银行卡、身份证验证、修正消息通知

This commit is contained in:
2023-03-16 15:32:36 +08:00
parent dcb2e801ce
commit 398bbf3a8c
15 changed files with 379 additions and 70 deletions
+29 -2
View File
@@ -77,7 +77,12 @@ class Prescription
return $response['result']['token'];
}
// 获取药品
/**
* 获取药品
* @param int $page
* @param int $pageSize
* @return mixed
*/
public function getProd(int $page = 1,int $pageSize = 10){
$option = [
"json" => array(
@@ -125,8 +130,30 @@ class Prescription
}
}
// 获取运费
/**
* 获取运费
* @return array
*/
public function getLogisticsFee(): array
{
$option = [
"json" => array(
"pharmacyCode" => "JG-10009",
),
];
try {
$response = $this->httpRequest($this->api_url . $this->version . '/pharmacy/transportationExpenses', $option);
if (empty($response)){
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
return $response;
} catch (GuzzleException $e) {
throw new BusinessException($e->getMessage());
}
}
/**
* 请求封装