Merge branch 'master' of https://bitbucket.org/venbaittech/sparqapi
This commit is contained in:
commit
dc188a3071
@ -354,4 +354,5 @@ $route['generateOTP'] = 'User_Management_Controller/generateOTP';
|
|||||||
$route['verifyOTP'] = 'User_Management_Controller/verifyOTP';
|
$route['verifyOTP'] = 'User_Management_Controller/verifyOTP';
|
||||||
|
|
||||||
$route['awsrek/(:any)'] = 'Test/testAwsrek';
|
$route['awsrek/(:any)'] = 'Test/testAwsrek';
|
||||||
$route['optimizeImages/(:num)'] = 'PD_Controller/optimizeImages';
|
$route['optimizeImages/(:num)'] = 'PD_Controller/optimizeImages';
|
||||||
|
$route['downloadSMCExcelFile/(:num)'] = 'PD_Controller/downloadSMCExcelFile';
|
||||||
@ -11501,6 +11501,16 @@ public function getCompaniesListsFromGeneralFormRawJSON_post()
|
|||||||
//print_r($result);
|
//print_r($result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function downloadSMCExcelFile_get()
|
||||||
|
{
|
||||||
|
$pd_id = $this->uri->segment(2);
|
||||||
|
$pd_master_details = $CI->PD_Model->getPDMasterDetails($pdid,$random_string,$pd_master_details);
|
||||||
|
$bucketname = LENDER_BUCKET_NAME_PREFIX.$pd_master_details[0]['fk_lender_id'];
|
||||||
|
$main_applicant_name = $pd_master_details[0]['main_applicant'];
|
||||||
|
return $singed_uri = $CI->aws_s3->getSingleObjectInaBucketAsSignedURI($bucketname,$key,'+30 minutes');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class MYHTTPCLIENT
|
|||||||
//echo IMAGE_OPTIMIZE_LAMBDA_URL;//die();
|
//echo IMAGE_OPTIMIZE_LAMBDA_URL;//die();
|
||||||
if(true)
|
if(true)
|
||||||
{
|
{
|
||||||
$reqest_data = ['bucket' => $sourceBucket,'pdid' => $pdid];
|
$reqest_data = ['bucket' => $sourceBucket,'pdid' => ('pd' . $pdid)];
|
||||||
//echo json_encode($reqest_data);die();
|
//echo json_encode($reqest_data);die();
|
||||||
$client = new \GuzzleHttp\Client();
|
$client = new \GuzzleHttp\Client();
|
||||||
$response = $client->post( IMAGE_OPTIMIZE_LAMBDA_URL, [
|
$response = $client->post( IMAGE_OPTIMIZE_LAMBDA_URL, [
|
||||||
|
|||||||
@ -436,6 +436,13 @@ class PD_Model extends SPARQ_Model {
|
|||||||
|
|
||||||
//new - all images optimized and stored in single bucket
|
//new - all images optimized and stored in single bucket
|
||||||
$bucket_name = OPTIMIZED_IMAGE_BUCKET_NAME;
|
$bucket_name = OPTIMIZED_IMAGE_BUCKET_NAME;
|
||||||
|
if($api_client == 'customer_app' || $api_client == null)//for customer app or sectionwise getting img api
|
||||||
|
{
|
||||||
|
//for sending immediate s3 link to customer app or any front end pointing
|
||||||
|
//old bucket name
|
||||||
|
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$lender_id[0]['fk_lender_id'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach($document_lists as $key => $value)
|
foreach($document_lists as $key => $value)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user