CHANGES_rengeneratestatelliteimage for credit pd manual api : ps
This commit is contained in:
parent
30a3121808
commit
0490557117
1
api/application/config/constants.php
Normal file → Executable file
1
api/application/config/constants.php
Normal file → Executable file
@ -115,6 +115,7 @@ defined('TURN_SERVER_API') OR define('TURN_SERVER_API', 'getServerInfo');
|
||||
defined('VIDEO_CHAT_ACCESS_KEY_API') OR define('VIDEO_CHAT_ACCESS_KEY_API', 'getVideoChatAccessKey'); // no errors
|
||||
defined('SAVEROOMINFO_API') OR define('SAVEROOMINFO_API', 'saveRoomInfo'); // no errors
|
||||
defined('SAVESMCCREDITPDIMAGE_API') OR define('SAVESMCCREDITPDIMAGE_API', 'saveSMCCreditPDImage'); // no errors
|
||||
defined('regenSatImgCreditPD') OR define('regenSatImgCreditPD', 'regenSatImgCreditPD'); // no errors
|
||||
defined('GETSMCPDIMGSECTIONDATA_API') OR define('GETSMCPDIMGSECTIONDATA_API', 'getSMCPDImgSectionData'); // no errors
|
||||
//defined('ROUTE_LOGIN') OR define('ROUTE_LOGIN','getFullPDDetails'); // no errors
|
||||
defined('CAMUNDA_URL') OR define('CAMUNDA_URL','http://34.121.71.79:8080/engine-rest/');
|
||||
|
||||
@ -327,6 +327,7 @@ $route['getCompanyListForSMCList'] = 'SMC_Credit_PD_Controller/getCompanyListFor
|
||||
|
||||
$route['getSMCVendorList'] = 'SMC_Credit_PD_Controller/getStateWiseAgency';
|
||||
$route['getSMCVendorPDOfficersList'] = 'SMC_Credit_PD_Controller/getSMCVendorPDOfficersList';
|
||||
$route['regenSatImgCreditPD'] = 'SMC_Credit_PD_Controller/regenerateSatelliteImg';
|
||||
|
||||
## Template V2 (Dynamical)
|
||||
$route['getTemplateMappingDetailsV2'] = 'Template_Management_Controller/getTemplateV2';
|
||||
|
||||
13
api/application/controllers/SMC_Credit_PD_Controller.php
Normal file → Executable file
13
api/application/controllers/SMC_Credit_PD_Controller.php
Normal file → Executable file
@ -1660,20 +1660,19 @@ public function filterSalesPDList_post() {
|
||||
}
|
||||
|
||||
|
||||
public function generateSatelliteImg_post()
|
||||
public function regenerateSatelliteImg_post()
|
||||
{
|
||||
|
||||
$input_data = $this->post();
|
||||
log_message('ERROR','####Satellite IMG CALLED smc credit pd ='.$input_data['smc_credit_pd']);
|
||||
$id = $this->SMC_Credit_PD_Model->updateRecords($input_data,SMC_CREDIT_PD,array('smc_credit_pd' => $input_data['smc_credit_pd']));
|
||||
satellite_image::getSatelliteImage($input_data['smc_credit_pd'],3);
|
||||
|
||||
log_message('ERROR','####Manually Called - Satellite IMG sales pd = '.$input_data['sales_pd_id']);
|
||||
$id = satellite_image::getSatelliteImage($input_data['sales_pd_id'],3);
|
||||
|
||||
$data['dataStatus'] = true;
|
||||
$data['status'] = REST_Controller::HTTP_OK;
|
||||
$data['records'] = $id;
|
||||
$data['result'] = $id ? $id : false;
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
api/application/helpers/authorization_helper.php
Normal file → Executable file
2
api/application/helpers/authorization_helper.php
Normal file → Executable file
@ -72,7 +72,7 @@ class AUTHORIZATION
|
||||
}
|
||||
|
||||
|
||||
if( $routingName == cetNewSalesPD || $routingName == LOGIN || $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A || $routingName == TURN_SERVER_API || $routingName == VIDEO_CHAT_ACCESS_KEY_API || $routingName ==SAVEROOMINFO_API || $routingName ==SAVESMCCREDITPDIMAGE_API || $routingName ==GETSMCPDIMGSECTIONDATA_API || $routingName == ROUTE_LOGIN_T || $routingName == ROUTE_LOGIN_U || $routingName == ROUTE_LOGIN_B || $routingName == ROUTE_LOGIN_C || $routingName == ROUTE_LOGIN_D || $routingName == ROUTE_LOGIN_E || $routingName == ROUTE_LOGIN_F || $routingName == ROUTE_LOGIN_Q || $routingName == ROUTE_LOGIN_R || $routingName == ROUTE_LOGIN_S || $routingName == ROUTE_LOGIN_G || $routingName == ROUTE_LOGIN_H || $routingName == ROUTE_LOGIN_I || $routingName == ROUTE_LOGIN_J )
|
||||
if( $routingName == cetNewSalesPD || $routingName == LOGIN || $routingName == ROUTE_LOGIN_X || $routingName == ROUTE_LOGIN_Y || $routingName == ROUTE_LOGIN_Z || $routingName == ROUTE_LOGIN_W || $routingName == ROUTE_LOGIN_V || $routingName == ROUTE_LOGIN_A || $routingName == TURN_SERVER_API || $routingName == VIDEO_CHAT_ACCESS_KEY_API || $routingName ==SAVEROOMINFO_API || $routingName ==SAVESMCCREDITPDIMAGE_API || $routingName ==GETSMCPDIMGSECTIONDATA_API || $routingName == ROUTE_LOGIN_T || $routingName == ROUTE_LOGIN_U || $routingName == ROUTE_LOGIN_B || $routingName == ROUTE_LOGIN_C || $routingName == ROUTE_LOGIN_D || $routingName == ROUTE_LOGIN_E || $routingName == ROUTE_LOGIN_F || $routingName == ROUTE_LOGIN_Q || $routingName == ROUTE_LOGIN_R || $routingName == ROUTE_LOGIN_S || $routingName == ROUTE_LOGIN_G || $routingName == ROUTE_LOGIN_H || $routingName == ROUTE_LOGIN_I || $routingName == ROUTE_LOGIN_J || $routingName == regenSatImgCreditPD )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user