salespd_cetapp_helper file log message : ps
This commit is contained in:
parent
b30b91f305
commit
2b6dd121bf
@ -9,7 +9,7 @@ class SALESPD_CETAPP
|
|||||||
$fields['data'] = $data;
|
$fields['data'] = $data;
|
||||||
$pdid = $fields['pdid'];
|
$pdid = $fields['pdid'];
|
||||||
$headers = array('Content-Type: application/json');
|
$headers = array('Content-Type: application/json');
|
||||||
log_message('ERROR',"Response Format : ".json_encode($fields));
|
//log_message('ERROR',"Response Format : ".json_encode($fields));
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
if($flag == 1){ //sectionurl
|
if($flag == 1){ //sectionurl
|
||||||
$log_msg = "PullSalesPDData api ";
|
$log_msg = "PullSalesPDData api ";
|
||||||
@ -30,7 +30,8 @@ class SALESPD_CETAPP
|
|||||||
curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ));
|
curl_setopt( $ch,CURLOPT_POSTFIELDS, json_encode( $fields ));
|
||||||
$result = curl_exec($ch );
|
$result = curl_exec($ch );
|
||||||
$response = json_decode($result);
|
$response = json_decode($result);
|
||||||
log_message('ERROR',"CET APP PDID (".$pdid.") ".$log_msg." response :".$response->status."/".$response->message);
|
log_message('ERROR',"CET APP PDID (".$pdid.") ".$log_msg." curl result : ".json_encode($result)." response :".json_encode($response));
|
||||||
|
//log_message('ERROR',"CET APP PDID (".$pdid.") ".$log_msg." response :".$response->status."/".$response->message);
|
||||||
// // MYLOG::logFunction(null,($pdid)->info("CET APP ".$log_msg,array('api_result' => $result));
|
// // MYLOG::logFunction(null,($pdid)->info("CET APP ".$log_msg,array('api_result' => $result));
|
||||||
// echo "res".$response->status;
|
// echo "res".$response->status;
|
||||||
// echo $response->message;
|
// echo $response->message;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user