Merge branch '394-warranty-expiration-sms-reminder' into 'master'

Activate actual sending of warranty SMS and change configuration to point to live DR URL #394

Closes #394

See merge request jankstudio/resq!448
This commit is contained in:
Kendrick Chan 2020-05-04 10:35:36 +00:00
commit 7faa6f3a1d
2 changed files with 4 additions and 1 deletions

View file

@ -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:

View file

@ -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.';