Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fit-finance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fitness-server
fit-finance
Commits
41fe69ff
Commit
41fe69ff
authored
Aug 13, 2024
by
程裕兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加半屏小程序
parent
15ec7023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
+16
-6
No files found.
service/src/main/java/com/jiejing/fitness/finance/service/merchant/impl/StudioMerchantServiceImpl.java
View file @
41fe69ff
...
...
@@ -60,6 +60,7 @@ import com.jiejing.paycenter.common.model.vo.SubChannelConfigVO;
import
com.jiejing.paycenter.common.model.vo.SubChannelVO
;
import
com.jiejing.studio.api.studio.vo.StudioVO
;
import
com.jiejing.wechat.WeXcxService
;
import
com.jiejing.wechat.vo.xcx.HalfScreenXcxAuthVO
;
import
com.jiejing.wechat.vo.xcx.HalfScreenXcxAuthVO.AuthXcxInfo
;
import
com.xiaomai.event.EventAgent
;
import
java.time.temporal.ChronoUnit
;
...
...
@@ -291,12 +292,12 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
@Override
public
void
syncEmbeddedXcx
()
{
List
<
AuthXcxInfo
>
list
=
this
.
listBoundAppIds
();
String
systemAppId
=
this
.
listSystemXcxAppIds
().
stream
().
findFirst
().
orElse
(
null
);
List
<
AuthXcxInfo
>
list
=
this
.
listBoundAppIds
(
systemAppId
);
if
(
CollectionUtil
.
isEmpty
(
list
))
{
return
;
}
String
systemAppId
=
this
.
listSystemXcxAppIds
().
stream
().
findFirst
().
orElse
(
null
);
List
<
StudioEmbeddedXcxApply
>
applies
=
studioEmbeddedXcxApplyRpService
.
listByAuthorizerAppIds
(
wxComponentAppId
,
systemAppId
,
list
.
stream
().
map
(
AuthXcxInfo:
:
getAppId
).
collect
(
Collectors
.
toList
()));
if
(
CollectionUtil
.
isEmpty
(
applies
))
{
...
...
@@ -338,10 +339,19 @@ public class StudioMerchantServiceImpl implements StudioMerchantService {
});
}
private
List
<
AuthXcxInfo
>
listBoundAppIds
()
{
// TODO
// weXcxService.getHalfScreenXcxAuthList();
return
Lists
.
newArrayList
();
private
List
<
AuthXcxInfo
>
listBoundAppIds
(
String
systemAppId
)
{
List
<
AuthXcxInfo
>
result
=
new
ArrayList
<>();
int
num
=
100
;
for
(
int
start
=
0
;
start
<
10
;
start
++)
{
HalfScreenXcxAuthVO
vo
=
weXcxService
.
listEmbeddedXcx
(
wxComponentAppId
,
systemAppId
,
start
,
num
);
if
(
CollectionUtil
.
isEmpty
(
vo
.
getWxaEmbeddedList
()))
{
break
;
}
result
.
addAll
(
vo
.
getWxaEmbeddedList
());
}
return
result
;
}
@Override
...
...
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