diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index dadce9c..f4c9483 100644 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -423,8 +423,8 @@ class Invoice extends BaseController $params->number = (int)'919677462018'; $params->type = "text"; $params->message = $message; - $params->instance_id = $_ENV['WAAI_INSTANCE']; - $params->access_token = $_ENV['WAAI_TOKEN']; + $params->instance_id = '65C9B978325A2'; + $params->access_token = '65c715e797d16'; $whatsapp_result = $notification->sendWhatsAppMessage(SEND_WAAI_URL, "POST", $params); } catch (\Exception $e) { diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index 8b737bc..faeb683 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -59,7 +59,7 @@ class Notifications extends BaseController $params = (object) Null; $parents_status = 0; $receiving_status = 0; - $this->logger->info("Whatsapp : sending message instance id = " . $_ENV['WAAI_INSTANCE'] . " - " . $_ENV['WAAI_TOKEN']); + $this->logger->info("Whatsapp : sending message instance id = " . '65C9B978325A2' . " - " . '65c715e797d16'); try { if ($records['categories'] == 'SEND_WAAI_GROUP_URL') { if ($records['group_id'] != "") { @@ -91,8 +91,8 @@ class Notifications extends BaseController $url = constant($records['categories']); $params->type = $records['type'] == "" ? "text" : $records['type']; - $params->instance_id = $_ENV['WAAI_INSTANCE']; - $params->access_token = $_ENV['WAAI_TOKEN']; + $params->instance_id = '65C9B978325A2'; + $params->access_token = '65c715e797d16'; $params->message = $records['description']; $this->logger->info("Whatsapp : sending message request = " . json_encode($params)); $this->logger->info("Whatsapp : sending message request type b4 = " . gettype($params));