Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
48b295bd
Commit
48b295bd
authored
Jan 18, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
1bb3bcce
5520acfc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
MqttxServiceImpl.java
...main/java/share/system/service/impl/MqttxServiceImpl.java
+1
-1
WechatNewServiceImpl.java
.../java/share/system/service/impl/WechatNewServiceImpl.java
+4
-2
No files found.
share-system/src/main/java/share/system/service/impl/MqttxServiceImpl.java
View file @
48b295bd
...
@@ -557,7 +557,7 @@ public class MqttxServiceImpl implements MqttxService {
...
@@ -557,7 +557,7 @@ public class MqttxServiceImpl implements MqttxService {
Map
<
String
,
Device
>
map
=
deviceList
.
stream
()
Map
<
String
,
Device
>
map
=
deviceList
.
stream
()
.
collect
(
Collectors
.
toMap
(
Device:
:
getDevId
,
Function
.
identity
()));
.
collect
(
Collectors
.
toMap
(
Device:
:
getDevId
,
Function
.
identity
()));
// 设备操作日志(最近3分钟内的最新操作日志)
// 设备操作日志(最近3分钟内的最新操作日志)
Date
startDate
=
DateUtil
.
offsetMinute
(
DateUtil
.
date
(),
-
3
);
Date
startDate
=
DateUtil
.
offsetMinute
(
DateUtil
.
date
(),
-
5
);
List
<
DeviceLog
>
deviceLogList
=
deviceLogMapper
.
selectListByMaxId
(
devIds
,
startDate
);
List
<
DeviceLog
>
deviceLogList
=
deviceLogMapper
.
selectListByMaxId
(
devIds
,
startDate
);
// 将List转换为Map
// 将List转换为Map
Map
<
String
,
DeviceLog
>
deviceLogMap
=
deviceLogList
.
stream
()
Map
<
String
,
DeviceLog
>
deviceLogMap
=
deviceLogList
.
stream
()
...
...
share-system/src/main/java/share/system/service/impl/WechatNewServiceImpl.java
View file @
48b295bd
...
@@ -511,7 +511,8 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -511,7 +511,8 @@ public class WechatNewServiceImpl implements WechatNewService {
if
(
data2
.
containsKey
(
"errcode"
)
&&
!
data2
.
getString
(
"errcode"
).
equals
(
"0"
))
{
if
(
data2
.
containsKey
(
"errcode"
)
&&
!
data2
.
getString
(
"errcode"
).
equals
(
"0"
))
{
if
(
data2
.
containsKey
(
"errmsg"
))
{
if
(
data2
.
containsKey
(
"errmsg"
))
{
wxExceptionDispose
(
data2
,
"微信小程序发送订阅消息重试异常"
);
wxExceptionDispose
(
data2
,
"微信小程序发送订阅消息重试异常"
);
throw
new
BaseException
(
"微信接口调用失败:"
+
data2
.
getString
(
"errcode"
)
+
data2
.
getString
(
"errmsg"
));
logger
.
error
(
"微信小程序发送订阅消息重试异常:"
+
data2
.
getString
(
"errcode"
)
+
data2
.
getString
(
"errmsg"
));
// throw new BaseException("微信接口调用失败:" + data2.getString("errcode") + data2.getString("errmsg"));
}
}
}
else
{
}
else
{
return
Boolean
.
TRUE
;
return
Boolean
.
TRUE
;
...
@@ -519,7 +520,8 @@ public class WechatNewServiceImpl implements WechatNewService {
...
@@ -519,7 +520,8 @@ public class WechatNewServiceImpl implements WechatNewService {
}
}
if
(
data
.
containsKey
(
"errmsg"
))
{
if
(
data
.
containsKey
(
"errmsg"
))
{
wxExceptionDispose
(
data
,
"微信小程序发送订阅消息异常"
);
wxExceptionDispose
(
data
,
"微信小程序发送订阅消息异常"
);
throw
new
BaseException
(
"微信接口调用失败:"
+
data
.
getString
(
"errcode"
)
+
data
.
getString
(
"errmsg"
));
logger
.
error
(
"微信小程序发送订阅消息异常:"
+
data
.
getString
(
"errcode"
)
+
data
.
getString
(
"errmsg"
));
// throw new BaseException("微信接口调用失败:" + data.getString("errcode") + data.getString("errmsg"));
}
}
}
}
return
Boolean
.
TRUE
;
return
Boolean
.
TRUE
;
...
...
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