Merged in amir_dev_2 (pull request #17)
Add new config for wabot local testing
This commit is contained in:
@@ -316,5 +316,8 @@ WABOT_TOKEN_KEYS_SECOND=cbee7e95cf3ffbfa0531d5fddfd44f87
|
||||
|
||||
ADMIN_EMAIL="admin_1@example.com,admin_2@example.com"
|
||||
|
||||
# fill in phone number for local testing
|
||||
ADMIN_PHONE_NUMBER=601234566789
|
||||
|
||||
ONE_WAY_SMS_USERNAME=apiusername
|
||||
ONE_WAY_SMS_PASSWORD=apipassword
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -148,6 +148,9 @@ Tuan/Puan adalah dikehendaki untuk membuat urusan berikut dikaunter cawangan pad
|
||||
|
||||
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',
|
||||
|
||||
@@ -148,6 +148,9 @@ Tuan/Puan adalah dikehendaki untuk membuat urusan berikut dikaunter cawangan pad
|
||||
|
||||
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',
|
||||
|
||||
@@ -155,6 +155,9 @@ Tuan/puan atau wakil adalah dikehendaki menebus/tukar surat di premis kami denga
|
||||
Sekian, terima kasih.';
|
||||
|
||||
|
||||
}
|
||||
if(config('app.env') != 'production'){
|
||||
$mobile_no = config('app.admin_phone_number');
|
||||
}
|
||||
$response = Http::get(env('WABOT_API'), [
|
||||
'number' => $mobile_no,
|
||||
|
||||
@@ -149,6 +149,9 @@ Wang Lebihan: *RM'.$baki.'*'.'
|
||||
|
||||
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',
|
||||
|
||||
@@ -257,6 +257,8 @@ return [
|
||||
|
||||
'admin_email' => env('ADMIN_EMAIL', 'admin@example.com'),
|
||||
|
||||
'admin_phone_number' => env('ADMIN_PHONE_NUMBER', 'null'),
|
||||
|
||||
'one_way_sms_username' => env('ONE_WAY_SMS_USERNAME', 'null'),
|
||||
|
||||
'one_way_sms_password' => env('ONE_WAY_SMS_PASSWORD', 'null'),
|
||||
|
||||
Reference in New Issue
Block a user