新增自动开具处方。修改ca对接
This commit is contained in:
@@ -161,4 +161,18 @@ class Oss
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断指定的文件是否存在
|
||||
* @param string $filename
|
||||
* @return bool
|
||||
*/
|
||||
public function doesObjectExist(string $filename): bool
|
||||
{
|
||||
try {
|
||||
$ossClient = $this->createClient();
|
||||
return $ossClient->doesObjectExist($this->config['bucket'], $filename);
|
||||
}catch(\Exception $e) {
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user