Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dmhub-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinxunjia
dmhub-plugin
Commits
b0e21fca
Commit
b0e21fca
authored
Sep 24, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信配置
parent
166af8e9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
4 deletions
+14
-4
pom.xml
pom.xml
+1
-1
DmHubConfig.java
...in/java/com/bgy/sms/channel/dmHub/config/DmHubConfig.java
+8
-1
MessageServiceImpl.java
...ain/java/com/bgy/sms/service/impl/MessageServiceImpl.java
+1
-1
application-dev.yml
src/main/resources/application-dev.yml
+2
-1
application-k8s.yml
src/main/resources/application-k8s.yml
+1
-0
application-test.yml
src/main/resources/application-test.yml
+1
-0
No files found.
pom.xml
View file @
b0e21fca
...
...
@@ -6,7 +6,7 @@
<groupId>
org.example
</groupId>
<artifactId>
sms-plugin
</artifactId>
<version>
1.0.
3
</version>
<version>
1.0.
4
</version>
<name>
插件服务
</name>
<description>
DM hub集成插件服务
</description>
...
...
src/main/java/com/bgy/sms/channel/dmHub/config/DmHubConfig.java
View file @
b0e21fca
package
com
.
bgy
.
sms
.
channel
.
dmHub
.
config
;
import
com.bgy.sms.channel.bgy.config.BgySMSConfig
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
...
...
@@ -21,6 +20,8 @@ public class DmHubConfig {
public
static
boolean
surlConfig
;
public
static
String
surlAddValue
;
@Value
(
"${system.config.dmHub.applicationId}"
)
public
void
setApplicationId
(
String
applicationId
)
{
DmHubConfig
.
applicationId
=
applicationId
;
...
...
@@ -55,10 +56,16 @@ public class DmHubConfig {
public
void
setShortUrl
(
String
shortUrl
)
{
DmHubConfig
.
shortUrl
=
shortUrl
;
}
@Value
(
"${system.config.dmHub.surlConfig}"
)
public
void
setSurlConfig
(
Boolean
surlConfig
)
{
DmHubConfig
.
surlConfig
=
surlConfig
;
}
@Value
(
"${system.config.dmHub.surlAddValue}"
)
public
void
setSurlAddValue
(
String
surlAddValue
)
{
DmHubConfig
.
surlAddValue
=
surlAddValue
;
}
}
src/main/java/com/bgy/sms/service/impl/MessageServiceImpl.java
View file @
b0e21fca
...
...
@@ -576,7 +576,7 @@ public class MessageServiceImpl implements MessageService {
if
(
"surl"
.
equals
(
key
))
{
if
(
DmHubConfig
.
surlConfig
)
{
info
=
"https://"
+
info
;
info
=
DmHubConfig
.
surlAddValue
+
info
;
}
}
paramsMap
.
put
(
keyBuffer
.
toString
(),
String
.
valueOf
(
info
));
...
...
src/main/resources/application-dev.yml
View file @
b0e21fca
...
...
@@ -52,7 +52,8 @@ system:
appId
:
1smsdemo
appSecret
:
ac031765c3a8c9acc4747808e4fe5918
shortUrl
:
urlshort-xsma-sit.bgy.com.cn
surlConfig
:
false
surlConfig
:
true
surlAddValue
:
https://
logging
:
level
:
debug
...
...
src/main/resources/application-k8s.yml
View file @
b0e21fca
...
...
@@ -50,6 +50,7 @@ system:
appSecret
:
${smsSecret}
shortUrl
:
${shortUrl}
surlConfig
:
${surlConfig}
surlAddValue
:
${surlAddValue}
logging
:
level
:
${logLevel}
...
...
src/main/resources/application-test.yml
View file @
b0e21fca
...
...
@@ -49,6 +49,7 @@ system:
appSecret
:
ac031765c3a8c9acc4747808e4fe5918
shortUrl
:
urlshort-xsma-sit.bgy.com.cn
surlConfig
:
true
surlAddValue
:
https://
logging
:
level
:
debug
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment