@@ -136,13 +136,15 @@ class Prescription
|
||||
/**
|
||||
* 获取商品库存
|
||||
* @param string $product_platform_code 处方平台商品编码(此处使用第三方药店商品编码!)
|
||||
* @param string $pharmacy_code 药房编码
|
||||
* @return array
|
||||
*/
|
||||
public function getProdStock(string $product_platform_code): array
|
||||
public function getProdStock(string $product_platform_code, string $pharmacy_code = ""): array
|
||||
{
|
||||
$code = !empty($pharmacy_code) ? $pharmacy_code : $this->pharmacy_code;
|
||||
$option = [
|
||||
"json" => array(
|
||||
"pharmacyCode" => $this->pharmacy_code,
|
||||
"pharmacyCode" => $code,
|
||||
"drugCode" => $product_platform_code,
|
||||
),
|
||||
];
|
||||
@@ -165,13 +167,15 @@ class Prescription
|
||||
|
||||
/**
|
||||
* 获取运费
|
||||
* @param string $pharmacy_code 药房编码
|
||||
* @return array
|
||||
*/
|
||||
public function getLogisticsFee(): array
|
||||
public function getLogisticsFee(string $pharmacy_code = ""): array
|
||||
{
|
||||
$code = !empty($pharmacy_code) ? $pharmacy_code : $this->pharmacy_code;
|
||||
$option = [
|
||||
"json" => array(
|
||||
"pharmacyCode" => $this->pharmacy_code,
|
||||
"pharmacyCode" => $code,
|
||||
),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user