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
4755e7e5
Commit
4755e7e5
authored
Jul 17, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化逻辑
parent
52e36a29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
MessageServiceImpl.java
...ain/java/com/bgy/sms/service/impl/MessageServiceImpl.java
+5
-14
No files found.
src/main/java/com/bgy/sms/service/impl/MessageServiceImpl.java
View file @
4755e7e5
...
...
@@ -75,7 +75,10 @@ public class MessageServiceImpl implements MessageService {
String
bgySendStr
=
bean
.
getUpSendStr
();
String
upCreateStr
=
bean
.
getUpCreateStr
();
String
params
=
bean
.
getParams
().
toString
();
SmsTemplateInfo
dbInfo
=
smsTemplateService
.
selectOne
(
new
EntityWrapper
<
SmsTemplateInfo
>().
eq
(
"dm_template_id"
,
templateId
));
SmsTemplateInfo
dbInfo
=
smsTemplateService
.
selectOne
(
new
EntityWrapper
<
SmsTemplateInfo
>()
.
eq
(
"dm_template_id"
,
templateId
)
.
eq
(
"tenant_id"
,
tenantId
)
);
if
(
dbInfo
!=
null
)
{
log
.
error
(
"Dm Hub请求创建模板,模板id已存在,模板id:【{}】"
,
templateId
);
xiaoShuService
.
updateDmhubSmsTempStatus
(
REJECTED
,
templateId
,
"模板id已存在,请重新创建"
);
...
...
@@ -174,19 +177,7 @@ public class MessageServiceImpl implements MessageService {
}
else
{
upCreateStr
=
upCreateStr
.
replaceAll
(
g
,
"\\$\\$"
);
// int i = t.indexOf("@");
// int i1 = t.indexOf("!");
// String str = t.substring(i + 1, i1);
// if (isNumeric(str)) {
// Integer integer = Integer.valueOf(str);
// if (integer == 0) {
// upCreateStr = upCreateStr.replaceAll(g, "\\$\\$");
// } else {
// upCreateStr = upCreateStr.replaceAll(g, "\\$\\$");
// }
// } else {
// upCreateStr = upCreateStr.replaceAll(g, "\\$\\$");
// }
}
}
arr
.
addAll
(
groups
);
...
...
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