新增command

This commit is contained in:
2023-03-14 19:46:45 +08:00
parent fa4e3e0382
commit 6f4c729dad
5 changed files with 63 additions and 17 deletions
+3 -4
View File
@@ -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'])){
// 返回值为空