Fixes : ps
This commit is contained in:
parent
210629aebd
commit
ecad06707c
@ -1988,8 +1988,8 @@ public function filterSalesPDList_post() {
|
|||||||
$photograph_data[$k]['rand_name'] = $rand_name;$k++;
|
$photograph_data[$k]['rand_name'] = $rand_name;$k++;
|
||||||
}
|
}
|
||||||
$CET_response = cet_salespd::repushwithcetphotographapi($section_fields);
|
$CET_response = cet_salespd::repushwithcetphotographapi($section_fields);
|
||||||
foreach ($photograph_data as $key => $value){
|
if(isset($CET_response->status) && $CET_response->status == 200){
|
||||||
if(isset($CET_response->status) && $CET_response->status == 200){
|
foreach ($photograph_data as $key => $value){
|
||||||
$rand_name = $value['rand_name'];
|
$rand_name = $value['rand_name'];
|
||||||
$source=$value['img_name'] == 'satellite' ? 'data:image/png;base64,'.$value['img'] : $value['img'];
|
$source=$value['img_name'] == 'satellite' ? 'data:image/png;base64,'.$value['img'] : $value['img'];
|
||||||
//Google Library - GCP
|
//Google Library - GCP
|
||||||
@ -2014,12 +2014,13 @@ public function filterSalesPDList_post() {
|
|||||||
$update_fields2 = array('rand_name' => $rand_name);
|
$update_fields2 = array('rand_name' => $rand_name);
|
||||||
$this->Sales_PD_Model->updateRecords($update_fields2,SALEPD_DOCS,array('doc_id'=>$value['doc_id']));
|
$this->Sales_PD_Model->updateRecords($update_fields2,SALEPD_DOCS,array('doc_id'=>$value['doc_id']));
|
||||||
}
|
}
|
||||||
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - CET response - '.json_encode($CET_response,true));
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - CET response - '.json_encode($CET_response,true));
|
|
||||||
}
|
}
|
||||||
|
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - CET response - '.json_encode($CET_response,true));
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - CET response - '.json_encode($CET_response,true));
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - No Images');
|
log_message('ERROR', '#### Sales PD ('.$sales_pd_id.') - No Images');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user