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
c97c7204
Commit
c97c7204
authored
Jun 19, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
b33ac3d7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
12 deletions
+27
-12
DmHubResponse.java
src/main/java/com/bgy/sms/channel/dto/DmHubResponse.java
+7
-1
MessageServiceImpl.java
...ain/java/com/bgy/sms/service/impl/MessageServiceImpl.java
+0
-2
application-dev.yml
src/main/resources/application-dev.yml
+6
-0
application-prod.yml
src/main/resources/application-prod.yml
+6
-0
application-test.yml
src/main/resources/application-test.yml
+7
-0
application.yml
src/main/resources/application.yml
+1
-9
No files found.
src/main/java/com/bgy/sms/channel/dto/DmHubResponse.java
View file @
c97c7204
...
...
@@ -23,7 +23,13 @@ public class DmHubResponse implements Serializable {
}
public
DmHubResponse
(
ResponseCode
responseCode
)
{
if
(
ResponseCode
.
SUCCESS
.
equals
(
responseCode
))
{
this
.
code
=
responseCode
.
getCode
();
}
else
{
error
=
new
JSONObject
();
error
.
put
(
"errorCode"
,
responseCode
.
getCode
());
error
.
put
(
"message"
,
responseCode
.
getMsg
());
}
}
public
String
getCode
()
{
...
...
src/main/java/com/bgy/sms/service/impl/MessageServiceImpl.java
View file @
c97c7204
...
...
@@ -87,7 +87,6 @@ public class MessageServiceImpl implements MessageService {
info
.
setParams
(
params
);
boolean
insert
=
smsTemplateService
.
insert
(
info
);
if
(!
insert
)
{
//TODO 发送告警
log
.
error
(
"模板插入DB异常:【{}】"
,
JSONObject
.
toJSONString
(
info
));
return
new
DmHubResponse
(
ResponseCode
.
SYSTEM_ERROR
);
}
...
...
@@ -96,7 +95,6 @@ public class MessageServiceImpl implements MessageService {
responseDTO
=
new
DmHubResponse
(
ResponseCode
.
SYSTEM_ERROR
);
}
return
responseDTO
;
}
...
...
src/main/resources/application-dev.yml
View file @
c97c7204
...
...
@@ -41,3 +41,9 @@ system:
tokenUrl
:
https://api.convertlab.com/security/accesstoken
report
:
https://api.convertlab.com/v1/sms/report
logging
:
level
:
debug
level.com.bgy
:
debug
# 单独指定包下的日志级别
config
:
classpath:logback-spring.xml
file
:
path
:
logs.log
src/main/resources/application-prod.yml
View file @
c97c7204
...
...
@@ -42,3 +42,9 @@ system:
tokenUrl
:
https://api.convertlab.com/security/accesstoken
report
:
https://api.convertlab.com/v1/sms/report
logging
:
level
:
error
level.com.bgy
:
error
# 单独指定包下的日志级别
config
:
classpath:logback-spring.xml
file
:
path
:
logs.log
\ No newline at end of file
src/main/resources/application-test.yml
View file @
c97c7204
...
...
@@ -40,3 +40,10 @@ system:
applicationKey
:
4017078e9dfd593b2d9a0ede58eff589644fbe50
tokenUrl
:
https://api.convertlab.com/security/accesstoken
report
:
https://api.convertlab.com/v1/sms/report
logging
:
level
:
debug
level.com.bgy
:
debug
# 单独指定包下的日志级别
config
:
classpath:logback-spring.xml
file
:
path
:
logs.log
\ No newline at end of file
src/main/resources/application.yml
View file @
c97c7204
...
...
@@ -15,11 +15,3 @@ mybatis-plus:
type-aliases-package
:
com.bgy.sms.repository.domain
configuration
:
map-underscore-to-camel-case
:
true
\ No newline at end of file
logging
:
level
:
debug
level.com.bgy
:
debug
# 单独指定包下的日志级别
config
:
classpath:logback-spring.xml
file
:
path
:
logs.log
\ No newline at end of file
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