url错误

This commit is contained in:
mkm 2023-09-09 11:57:56 +08:00
parent 4a5cf12d4f
commit 21944f9987

@ -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(['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']);
} else {
return $this->fail('获取失败');