From 330a854b45e545b2f4f9599a248407da20ef3696 Mon Sep 17 00:00:00 2001 From: nilsir Date: Wed, 8 Jul 2020 21:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat(=E7=AD=BE=E7=BD=B2=E6=B5=81?= =?UTF-8?q?=E7=A8=8B):=20=E5=BD=92=E6=A1=A3=E5=92=8C=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SignFlow/SignFlow.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/SignFlow/SignFlow.php b/src/SignFlow/SignFlow.php index 70a9c10..373fcc5 100644 --- a/src/SignFlow/SignFlow.php +++ b/src/SignFlow/SignFlow.php @@ -214,4 +214,36 @@ public function getExecuteUrl($flowId, $accountId, $orgId = null, $urlType = 0, return $this->parseJSON('get', [$url, $params]); } + + /** + * 签署流程归档. + * + * @param string $flowId 流程id + * + * @return Collection|null + * + * @throws HttpException + */ + public function archiveSign($flowId) + { + $url = sprintf('/v1/signflows/%s/archive', $flowId); + + return $this->parseJSON('put', [$url]); + } + + /** + * 流程文档下载. + * + * @param string $flowId 流程id + * + * @return Collection|null + * + * @throws HttpException + */ + public function downloadDocument($flowId) + { + $url = sprintf('/v1/signflows/%s/documents', $flowId); + + return $this->parseJSON('get', [$url]); + } }