Merge pull request 'url错误' (#43) from mkm into dev

Reviewed-on: #43
This commit is contained in:
mkm 2023-09-09 11:58:13 +08:00
commit e60058908b

View File

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