CHANGE_ in docs link expire time: GWM

This commit is contained in:
bitbucket 2024-07-16 11:10:42 +05:30
parent ffaa98cb00
commit 90bea122ea
2 changed files with 2 additions and 2 deletions

View File

@ -685,7 +685,7 @@ class MasterController extends BaseController
$documentUrl = base_url();
// helper('url');
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 36000) . '">Preview and Approve Document</a>';
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 259200) . '">Preview and Approve Document</a>';
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
// ->join('business', 'branches.business_id = business.business_id', 'left')
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))

View File

@ -3,7 +3,7 @@
use Config\Services;
if (!function_exists('generate_signed_url')) {
function generate_signed_url($route, $params = [], $expiresIn = 3600)
function generate_signed_url($route, $params = [], $expiresIn = 259200)
{
$secretKey = 'your-secret-key'; // Change this to your secret key
$expiresAt = time() + $expiresIn;