Unverified Commit f527027f authored by AMIT KUMAR's avatar AMIT KUMAR Committed by GitHub
Browse files

Issue #SB-0000 feat: notification change (#919)

No related merge requests found
Showing with 6 additions and 1 deletion
+6 -1
...@@ -92,7 +92,10 @@ public class NICGatewaySmsProvider implements ISmsProvider { ...@@ -92,7 +92,10 @@ public class NICGatewaySmsProvider implements ISmsProvider {
/** this method will do the SMS properties initialization. */ /** this method will do the SMS properties initialization. */
public static boolean init() { public static boolean init() {
baseUrl = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_base_url"); baseUrl = System.getenv("nic_sms_gateway_provider_base_url");
if (JsonUtil.isStringNullOREmpty(baseUrl)) {
baseUrl = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_base_url");
}
senderId = System.getenv("nic_sms_gateway_provider_senderid"); senderId = System.getenv("nic_sms_gateway_provider_senderid");
if (JsonUtil.isStringNullOREmpty(senderId)) { if (JsonUtil.isStringNullOREmpty(senderId)) {
senderId = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_senderid"); senderId = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_senderid");
......
...@@ -6,3 +6,5 @@ sunbird.msg.91.route=4 ...@@ -6,3 +6,5 @@ sunbird.msg.91.route=4
sunbird.msg.91.baseurl=http://api.msg91.com/ sunbird.msg.91.baseurl=http://api.msg91.com/
sunbird.msg.91.get.url=api/sendhttp.php? sunbird.msg.91.get.url=api/sendhttp.php?
sunbird.msg.91.post.url=api/v2/sendsms sunbird.msg.91.post.url=api/v2/sendsms
#NIC
nic_sms_gateway_provider_base_url=https://smsgw.sms.gov.in/failsafe/HttpLink
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment