Skip to content

Commit

Permalink
#7 fix: try repair webhook not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowbhz authored Sep 7, 2022
1 parent 5d1b044 commit 6f612a4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/ApiBrasil.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public static function WhatsAppService(string $action = '', array $data = []) {
$apitoken = $data['apitoken'] ?? '';
$session = $data['session'] ?? '';

$wh_status = $data['wh_status'] ?? '';
$wh_message = $data['wh_message'] ?? '';
$wh_connect = $data['wh_connect'] ?? '';
$wh_qrcode = $data['wh_qrcode'] ?? '';
// $wh_status = $data['wh_status'] ?? '';
// $wh_message = $data['wh_message'] ?? '';
// $wh_connect = $data['wh_connect'] ?? '';
// $wh_qrcode = $data['wh_qrcode'] ?? '';

$serverhost = $serverhost."/".$action;

Expand All @@ -51,6 +51,14 @@ public static function WhatsAppService(string $action = '', array $data = []) {
'apitoken:'.$apitoken,
'sessionkey:'.$sessionkey
);

$body = array(
'session' => $session,
'wh_status' => $data['wh_status'],
'wh_message' => $data['wh_message'],
'wh_connect' => $data['wh_connect'],
'wh_qrcode' => $data['wh_qrcode']
);
}

//send parameters qrcode get
Expand Down

0 comments on commit 6f612a4

Please sign in to comment.