Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
c58bfb72
Commit
c58bfb72
authored
Jul 12, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检查silk2mp3
parent
0b265281
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
OpenStaffServiceImpl.java
...ban/manage/service/service/impl/OpenStaffServiceImpl.java
+16
-7
QywxOpenTaskController.java
...an/manage/web/controller/open/QywxOpenTaskController.java
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/OpenStaffServiceImpl.java
View file @
c58bfb72
...
...
@@ -31,6 +31,7 @@ import com.gic.haoban.manage.service.pojo.QwOpenResultInitBO;
import
com.gic.haoban.manage.service.service.OpenStaffService
;
import
com.gic.haoban.manage.service.service.StaffClerkRelationService
;
import
com.gic.haoban.manage.service.util.OpenUtils
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.github.pagehelper.PageHelper
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -254,16 +255,24 @@ public class OpenStaffServiceImpl implements OpenStaffService {
@Override
public
void
openStaffTimer
()
{
log
.
info
(
"定时检查托管状态"
);
Object
o
=
RedisUtil
.
getCache
(
"haobansilk2mp3"
)
;
if
(
null
==
o
)
{
com
.
gic
.
haoban
.
common
.
utils
.
DingUtils
.
send
(
"请检查silk2mp3"
,
false
);
}
List
<
TabOpenStaff
>
list
=
this
.
openStaffMapper
.
listAllOnline
(
null
,
null
);
for
(
TabOpenStaff
item
:
list
)
{
String
uuid
=
item
.
getUuid
();
boolean
isLogin
=
OpenUtils
.
isLogin
(
uuid
);
// 未登录
if
(!
isLogin
)
{
String
autLogin
=
this
.
autoLogin
(
item
.
getOpenStaffId
(),
item
.
getQwUserId
());
if
(
null
==
autLogin
)
{
this
.
logout
(
uuid
,
"定时检查异"
,
0
,
OpenStaffOfflineEnum
.
OFFLINE2
.
getDesc
());
try
{
String
uuid
=
item
.
getUuid
();
boolean
isLogin
=
OpenUtils
.
isLogin
(
uuid
);
// 未登录
if
(!
isLogin
)
{
String
autLogin
=
this
.
autoLogin
(
item
.
getOpenStaffId
(),
item
.
getQwUserId
());
if
(
null
==
autLogin
)
{
this
.
logout
(
uuid
,
"定时检查异"
,
0
,
OpenStaffOfflineEnum
.
OFFLINE2
.
getDesc
());
}
}
}
catch
(
Exception
e
)
{
log
.
info
(
"异常"
,
e
);
}
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenTaskController.java
View file @
c58bfb72
...
...
@@ -42,6 +42,7 @@ import com.gic.member.tag.api.dto.MemberTagItemDTO;
import
com.gic.member.tag.api.service.MemberTagApiService
;
import
com.gic.member.tag.api.service.MemberTagGroupApiService
;
import
com.gic.qcloud.BucketNameEnum
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.thirdparty.cloudfile.CloudFileUtil
;
import
com.gic.thirdparty.cloudfile.enums.CloudFileBusinessOptEnum
;
import
com.gic.thirdparty.cloudfile.enums.CloudFileTypeEnum
;
...
...
@@ -66,6 +67,7 @@ import java.io.IOException;
import
java.io.InputStream
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -781,6 +783,7 @@ public class QywxOpenTaskController {
@IgnoreLogin
public
Object
listSilk
()
{
List
<
OpenQwSilkMp3DTO
>
ret
=
this
.
openQwApiService
.
listSilk
();
RedisUtil
.
setCache
(
"haobansilk2mp3"
,
1
,
3L
,
TimeUnit
.
MINUTES
);
return
RestResponse
.
successResult
(
ret
);
}
...
...
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