Add new config for wabot local testing

This commit is contained in:
Amir
2023-07-31 14:08:59 +08:00
parent 29bbc3b3d2
commit 311e7105f9
8 changed files with 26 additions and 2 deletions
+6 -2
View File
@@ -2347,7 +2347,9 @@ class LelongController extends Controller
//blast whatsapp notifikasi
$mobileno = ltrim($userdetailsnoti['notelbimbit'], '+');
$messages = 'AR-RAHN PKB: Tahniah Anda Pemenang ArrahnBid, Sila Semak Melalui Sistem ArrahnBid. Terima kasih.';
if(config('app.env') != 'production'){
$mobileno = config('app.admin_phone_number');
}
$status = Http::get(env('WABOT_API'),[
'number' => $mobileno,
'type' => 'text',
@@ -2497,7 +2499,9 @@ class LelongController extends Controller
$mobile_no = ltrim($user_true->notelbimbit, '+');
$message = 'AR-RAHN PKB: Tahniah Anda Menang Bidaan Sebanyak RM' . $total_bid_win_converted . '. Sila Semak Melalui Sistem ArrahnBid. Terima Kasih.';
if(config('app.env') != 'production'){
$mobile_no = config('app.admin_phone_number');
}
$response = Http::get(env('WABOT_API'), [
'number' => $mobile_no,
'type' => 'text',
+3
View File
@@ -1662,6 +1662,9 @@ Sekian, terima kasih.';
}
// dd($message);
// $message = 'Hello%20Nadine%0Ahow%20are%20you%0A';
if(config('app.env') != 'production'){
$mobile_no = config('app.admin_phone_number');
}
$response = Http::get(env('WABOT_API'), [
'number' => $mobile_no,
'type' => 'text',