新增ca认证对接、新增银行卡、身份证验证、修正消息通知
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 请求封装
|
||||
|
||||
Reference in New Issue
Block a user