新增command
This commit is contained in:
@@ -36,6 +36,7 @@ class Prescription
|
||||
$this->client_id = "ZD-004";
|
||||
$this->client_secret = "0baa5927164710b9f800bf33546b6da3";
|
||||
$this->container = ApplicationContext::getContainer();
|
||||
$this->client = $this->container->get(Client::class);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,6 +96,7 @@ class Prescription
|
||||
if (empty($response['result']['rows'])){
|
||||
return true;
|
||||
}
|
||||
|
||||
dump($response);
|
||||
// 获取总数
|
||||
// $count
|
||||
@@ -131,13 +133,11 @@ class Prescription
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
if (!empty($option)){
|
||||
$arg = array_merge($arg,$option);
|
||||
}
|
||||
|
||||
|
||||
dump($arg);
|
||||
|
||||
$response = $this->client->post($path, $arg);
|
||||
|
||||
if ($response->getStatusCode() != '200'){
|
||||
@@ -150,7 +150,6 @@ class Prescription
|
||||
// 返回值为空
|
||||
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
|
||||
}
|
||||
dump($body);
|
||||
|
||||
if (empty($body['data'])){
|
||||
// 返回值为空
|
||||
|
||||
Reference in New Issue
Block a user