ss
This commit is contained in:
parent
37f3dc0091
commit
400dc5996a
@ -423,8 +423,8 @@ class Invoice extends BaseController
|
|||||||
$params->number = (int)'919677462018';
|
$params->number = (int)'919677462018';
|
||||||
$params->type = "text";
|
$params->type = "text";
|
||||||
$params->message = $message;
|
$params->message = $message;
|
||||||
$params->instance_id = $_ENV['WAAI_INSTANCE'];
|
$params->instance_id = '65C9B978325A2';
|
||||||
$params->access_token = $_ENV['WAAI_TOKEN'];
|
$params->access_token = '65c715e797d16';
|
||||||
$whatsapp_result = $notification->sendWhatsAppMessage(SEND_WAAI_URL, "POST", $params);
|
$whatsapp_result = $notification->sendWhatsAppMessage(SEND_WAAI_URL, "POST", $params);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class Notifications extends BaseController
|
|||||||
$params = (object) Null;
|
$params = (object) Null;
|
||||||
$parents_status = 0;
|
$parents_status = 0;
|
||||||
$receiving_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 {
|
try {
|
||||||
if ($records['categories'] == 'SEND_WAAI_GROUP_URL') {
|
if ($records['categories'] == 'SEND_WAAI_GROUP_URL') {
|
||||||
if ($records['group_id'] != "") {
|
if ($records['group_id'] != "") {
|
||||||
@ -91,8 +91,8 @@ class Notifications extends BaseController
|
|||||||
|
|
||||||
$url = constant($records['categories']);
|
$url = constant($records['categories']);
|
||||||
$params->type = $records['type'] == "" ? "text" : $records['type'];
|
$params->type = $records['type'] == "" ? "text" : $records['type'];
|
||||||
$params->instance_id = $_ENV['WAAI_INSTANCE'];
|
$params->instance_id = '65C9B978325A2';
|
||||||
$params->access_token = $_ENV['WAAI_TOKEN'];
|
$params->access_token = '65c715e797d16';
|
||||||
$params->message = $records['description'];
|
$params->message = $records['description'];
|
||||||
$this->logger->info("Whatsapp : sending message request = " . json_encode($params));
|
$this->logger->info("Whatsapp : sending message request = " . json_encode($params));
|
||||||
$this->logger->info("Whatsapp : sending message request type b4 = " . gettype($params));
|
$this->logger->info("Whatsapp : sending message request type b4 = " . gettype($params));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user