Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
302d02ea
Commit
302d02ea
authored
Jul 05, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改短信发送模板
parent
5b8bdce7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
refined-manager/src/main/java/com/mortals/xhx/module/care/service/impl/CareRecordsServiceImpl.java
.../xhx/module/care/service/impl/CareRecordsServiceImpl.java
+7
-2
No files found.
refined-manager/src/main/java/com/mortals/xhx/module/care/service/impl/CareRecordsServiceImpl.java
View file @
302d02ea
package
com.mortals.xhx.module.care.service.impl
;
package
com.mortals.xhx.module.care.service.impl
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.util.RandomUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -129,7 +130,6 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
...
@@ -129,7 +130,6 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
ApiSmsResp
<
Void
>
apiSmsResp
=
JSON
.
parseObject
(
resp
,
new
TypeReference
<
ApiSmsResp
<
Void
>>()
{
ApiSmsResp
<
Void
>
apiSmsResp
=
JSON
.
parseObject
(
resp
,
new
TypeReference
<
ApiSmsResp
<
Void
>>()
{
});
});
//发送短信给管理员
//发送短信给管理员
UserEntity
userEntity
=
new
UserEntity
();
UserEntity
userEntity
=
new
UserEntity
();
userEntity
.
setUserType
(
UserType
.
SYSTEM
.
getValue
());
userEntity
.
setUserType
(
UserType
.
SYSTEM
.
getValue
());
...
@@ -139,7 +139,12 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
...
@@ -139,7 +139,12 @@ public class CareRecordsServiceImpl extends AbstractCRUDServiceImpl<CareRecordsD
smsThirdPartyReq
.
setAppid
(
apiId
);
smsThirdPartyReq
.
setAppid
(
apiId
);
smsThirdPartyReq
.
setPhone
(
userEntity
.
getMobile
());
smsThirdPartyReq
.
setPhone
(
userEntity
.
getMobile
());
smsThirdPartyReq
.
setType
(
ParamKey
.
SYS_PARAM_SMS_ADMIN_CARE_TYPE
);
smsThirdPartyReq
.
setType
(
ParamKey
.
SYS_PARAM_SMS_ADMIN_CARE_TYPE
);
smsThirdPartyReq
.
setJson
(
"[]"
);
String
[]
json
=
new
String
[
3
];
json
[
0
]
=
"精细化平台"
;
json
[
1
]
=
careRecordsEntity
.
getName
()==
null
?
"有群众"
:
careRecordsEntity
.
getBussinessName
();
json
[
2
]
=
careRecordsEntity
.
getService
();
smsThirdPartyReq
.
setJson
(
JSONObject
.
toJSON
(
json
).
toString
());
form
=
BeanUtil
.
beanToMap
(
smsThirdPartyReq
,
false
,
true
);
form
=
BeanUtil
.
beanToMap
(
smsThirdPartyReq
,
false
,
true
);
log
.
info
(
"sms req sendUrl:{} params:{}"
,
smsSendUrl
,
JSON
.
toJSONString
(
form
));
log
.
info
(
"sms req sendUrl:{} params:{}"
,
smsSendUrl
,
JSON
.
toJSONString
(
form
));
...
...
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