diff --git a/config/services.yaml b/config/services.yaml index 697e0428..05fd3b1a 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -74,7 +74,7 @@ services: $pass: "%env(RT_PASS)%" $usage_type: "%env(RT_USAGE_TYPE)%" $shortcode: "%env(RT_SHORTCODE)%" - $dr_url: "https://resqapi.jankstudio.com/sms/delivery_receipt" + $dr_url: "https://resqaws.jankstudio.com/sms/delivery_receipt" App\Service\MQTTClient: arguments: diff --git a/src/Command/WarrantySMSCommand.php b/src/Command/WarrantySMSCommand.php index 4758d4ab..e01bf732 100644 --- a/src/Command/WarrantySMSCommand.php +++ b/src/Command/WarrantySMSCommand.php @@ -95,8 +95,11 @@ class WarrantySMSCommand extends Command { $msg = 'Hi ' . $wdata['name'] . ', the warranty for the ' . $wdata['batt'] . ' installed in your car(' . $wdata['plate'] . ') has expired already. Please call MOTOLITE EXPRESS HATID at 8370-6686 to have the status of your battery checked to avoid any inconvenience. Thank you for choosing Motolite.'; error_log($wdata['number'] . ' - sending ' . $msg); + + $this->gateway->sendSMS($wdata['number'], 'MOTOLITE', $msg); } + /* error_log('sending sms to ' . $number); $msg = 'This is a test.';