This commit is contained in:
bitbucket 2024-02-27 16:16:54 +05:30
parent 37f3dc0091
commit 400dc5996a
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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));