修复错误
This commit is contained in:
parent
6bc993466a
commit
4a5cf12d4f
@ -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'],
|
||||
|
@ -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('获取失败');
|
||||
|
Loading…
x
Reference in New Issue
Block a user