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

Issue #SB-0000 feat:fixing nic provider issue (#918)

* Issue #SB-0000 feat:fixing nic provider issue

* Issue #SB-0000 feat: notification change
Showing with 8 additions and 3 deletions
+8 -3
......@@ -93,7 +93,10 @@ public class NICGatewaySmsProvider implements ISmsProvider {
/** this method will do the SMS properties initialization. */
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");
if (JsonUtil.isStringNullOREmpty(senderId)) {
senderId = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_senderid");
......@@ -106,9 +109,9 @@ public class NICGatewaySmsProvider implements ISmsProvider {
if (JsonUtil.isStringNullOREmpty(password)) {
password = PropertiesCache.getInstance().getProperty("nic_sms_gateway_provider_password");
}
dltEntityId = System.getenv("diksha_dlt_entity_id");
dltEntityId = System.getenv("dlt_entity_id");
if (JsonUtil.isStringNullOREmpty(dltEntityId)) {
dltEntityId = PropertiesCache.getInstance().getProperty("diksha_dlt_entity_id");
dltEntityId = PropertiesCache.getInstance().getProperty("dlt_entity_id");
}
return validateSettings();
}
......
......@@ -6,3 +6,5 @@ sunbird.msg.91.route=4
sunbird.msg.91.baseurl=http://api.msg91.com/
sunbird.msg.91.get.url=api/sendhttp.php?
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