Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
sunbird-lms-service
Commits
f527027f
Unverified
Commit
f527027f
authored
3 years ago
by
AMIT KUMAR
Committed by
GitHub
3 years ago
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-0000 feat: notification change (#919)
parent
b69fe95a
release-4.1.0
release-4.1.0_RC16
release-4.1.0_RC15
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/sunbird-notification/src/main/java/org/sunbird/notification/sms/providerimpl/NICGatewaySmsProvider.java
+4
-1
.../notification/sms/providerimpl/NICGatewaySmsProvider.java
core/sunbird-notification/src/main/resources/configuration.properties
+2
-0
...-notification/src/main/resources/configuration.properties
with
6 additions
and
1 deletion
+6
-1
core/sunbird-notification/src/main/java/org/sunbird/notification/sms/providerimpl/NICGatewaySmsProvider.java
+
4
−
1
View file @
f527027f
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
core/sunbird-notification/src/main/resources/configuration.properties
+
2
−
0
View file @
f527027f
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets