photograph fixes : ps

This commit is contained in:
VE10-Sanjeev 2023-03-02 16:49:41 +05:30
parent e69243f5ea
commit 210629aebd

View File

@ -1985,9 +1985,12 @@ public function filterSalesPDList_post() {
$rand_name = $value['img_name'] == 'satellite' ? "satellite.png" : $value['img_name']."_".$randomString.".png";
$section_fields['data']['section9'][$k]['img_name'] = $value['img_name'];
$section_fields['data']['section9'][$k]['img'] = $rand_name;
$CET_response = cet_salespd::repushwithcetphotographapi($section_fields);
$photograph_data[$k]['rand_name'] = $rand_name;$k++;
}
$CET_response = cet_salespd::repushwithcetphotographapi($section_fields);
foreach ($photograph_data as $key => $value){
if(isset($CET_response->status) && $CET_response->status == 200){
$rand_name = $value['rand_name'];
$source=$value['img_name'] == 'satellite' ? 'data:image/png;base64,'.$value['img'] : $value['img'];
//Google Library - GCP
$gcpBucketName = GCP_BUCKET_NAME;