修复错误

This commit is contained in:
mkm 2023-09-09 11:56:29 +08:00
parent 6bc993466a
commit 4a5cf12d4f
2 changed files with 4 additions and 1 deletions

View File

@ -183,6 +183,9 @@ class ContractController extends BaseAdminController
{
$parms = Request::param();
$detail=ContractLogic::detail($parms);
if(!empty($detail['evidence_url'])){
return $this->success('获取成功', ['url' => env('url.url_prefix') . '/uploads/evidence/' .$detail['evidence_url'] . '.zip']);
}
$request = array(
"applyNo" => $detail['contract_no'],
"fullName" => $detail['party_a_info']['company_name'],

View File

@ -327,7 +327,7 @@ class JunziqianController extends BaseApiController
$response = $requestUtils->doPost("/v2/sign/presLinkFile", $request);
if ($response->success == true) {
$this->getDownload($response->data, root_path() . 'public/uploads/evidence/' . $param['applyNo'] . '.zip');
Db::name('contract')->where('contract_no', $param['applyNo'])->update(['contract_url' => '/uploads/evidence/' . $param['applyNo'] . '.pdf']);
Db::name('contract')->where('contract_no', $param['applyNo'])->update(['evidence' => '/uploads/evidence/' . $param['applyNo'] . '.zip']);
return $this->success('获取成功', ['url' => env('url.url_prefix') . '/uploads/evidence/' . $param['applyNo'] . '.zip']);
} else {
return $this->fail('获取失败');