gmeet time scheduling for One Hour enabled
This commit is contained in:
parent
bbfd821b77
commit
75f9fa9e06
@ -11885,20 +11885,24 @@ public function getCompaniesListsFromGeneralFormRawJSONV2_post()
|
||||
function createGmeetLink_get()
|
||||
// function createGmeetLink($pdid)
|
||||
{
|
||||
|
||||
// echo Date('Y-m-d').'T'. Date('H:i:s', (strtotime(Date('H:i:s') . '+ 1 hour')));
|
||||
// die();
|
||||
$pdid = $this->get('pdid');
|
||||
$this->load->library('Googleapi');
|
||||
$pd_details = $this->PD_Model->getPDMasterDetails($pdid);
|
||||
// print_r($pd_details);
|
||||
|
||||
if($pd_details[0]['gmeet_code'] == null && ($pd_details[0]['fk_pd_type'] == 2 || $pd_details[0]['fk_pd_type'] == 3))
|
||||
if(!$pd_details[0]['gmeet_code'] && ($pd_details[0]['fk_pd_type'] == 2 || $pd_details[0]['fk_pd_type'] == 3))
|
||||
{
|
||||
$event = array(
|
||||
'summary' => 'PD for case -'.$pd_details[0]['pd_sno'].' & Applicant ID - '.$pd_details[0]['lender_applicant_id'],
|
||||
'start' => Date('Y-m-d'),
|
||||
'end' => Date('Y-m-d'),
|
||||
'summary' => 'PD for '.$pd_details[0]['title_name'].' '.$pd_details[0]['main_applicant'].' & case no -'.$pd_details[0]['pd_sno'].' & Applicant ID - '.$pd_details[0]['lender_applicant_id'],
|
||||
'start' => Date('Y-m-d').'T'.Date('H:i:s'),
|
||||
'end' => Date('Y-m-d').'T'. Date('H:i:s', (strtotime(Date('H:i:s') . '+ 1 hour'))),
|
||||
'pdid' => $pdid,
|
||||
|
||||
);
|
||||
|
||||
// print_r($event);die();
|
||||
$event_data = $this->googleapi->addGoogleCalenterEvent($event);
|
||||
if(is_object($event_data))
|
||||
{
|
||||
|
||||
@ -144,11 +144,11 @@ class Googleapi
|
||||
'location' => 'Online',
|
||||
'description' => '',
|
||||
'start' => array(
|
||||
'dateTime' => $eventdata['start'].'T00:00:00',
|
||||
'dateTime' => $eventdata['start'],
|
||||
'timeZone' => 'Asia/Kolkata',
|
||||
),
|
||||
'end' => array(
|
||||
'dateTime' => $eventdata['end'].'T00:00:00',
|
||||
'dateTime' => $eventdata['end'],
|
||||
'timeZone' => 'Asia/Kolkata',
|
||||
),"conferenceData" => [
|
||||
"createRequest"=> [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user