Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
2bb0c460
Commit
2bb0c460
authored
Sep 02, 2024
by
chenchao.deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接腾讯云api
parent
69d70863
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+7
-4
TenCentEcsClient.java
.../edgec/browserbackend/common/client/TenCentEcsClient.java
+2
-2
No files found.
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
2bb0c460
...
...
@@ -523,10 +523,10 @@ public class ShopServiceImpl implements ShopService {
start
=
System
.
currentTimeMillis
();
List
<
String
>
allIds
=
null
;
if
(!
"penghai"
.
equals
(
tag
))
{
if
(
"-1"
.
equals
(
groupId
))
{
if
(
"-1"
.
equals
(
groupId
)
||
"-2"
.
equals
(
groupId
)
)
{
allIds
=
userShopRepository
.
findByUsername
(
username
).
stream
().
map
(
UserShop:
:
getShopId
).
collect
(
Collectors
.
toList
());
}
if
(!
"-1"
.
equals
(
groupId
))
{
if
(!
"-1"
.
equals
(
groupId
)
&&
!
"-2"
.
equals
(
groupId
)
)
{
// 如果分组
allIds
=
userShopRepository
.
findByUsernameAndGroupId
(
username
,
groupId
).
stream
().
map
(
UserShop:
:
getShopId
).
collect
(
Collectors
.
toList
());
}
...
...
@@ -632,6 +632,9 @@ public class ShopServiceImpl implements ShopService {
// ipResourceRepository.save(ipResource);
pageIpResourceListToSave
.
add
(
ipResource
);
}
if
(
"-2"
.
equals
(
groupId
)){
return
;
}
}
//ShopResultDto shopResultDto = getShopResultDto(username, x, ipResource, specialLine);
...
...
@@ -643,9 +646,9 @@ public class ShopServiceImpl implements ShopService {
);
ipResourceRepository
.
saveAll
(
pageIpResourceListToSave
);
Page
<
ShopResultDto
>
shopDtoPage
=
new
PageImpl
<>(
shopResultDtos
,
pageable
,
shop
Id
s
.
size
());
Page
<
ShopResultDto
>
shopDtoPage
=
new
PageImpl
<>(
shopResultDtos
,
pageable
,
shop
ResultDto
s
.
size
());
shopPageResultDto
.
setShopList
(
shopDtoPage
.
getContent
());
PageInfo
pageInfo
=
new
PageInfo
(
shopDtoPage
.
getPageable
().
getPageNumber
(),
shopDtoPage
.
getTotalPages
(),
shop
Id
s
.
size
());
PageInfo
pageInfo
=
new
PageInfo
(
shopDtoPage
.
getPageable
().
getPageNumber
(),
shopDtoPage
.
getTotalPages
(),
shop
ResultDto
s
.
size
());
shopPageResultDto
.
setShopPage
(
pageInfo
);
}
logger
.
info
(
"getshoplist step-6:{},{}"
,
username
,
System
.
currentTimeMillis
()
-
start
);
...
...
src/main/java/com/edgec/browserbackend/common/client/TenCentEcsClient.java
View file @
2bb0c460
...
...
@@ -26,12 +26,12 @@ public class TenCentEcsClient {
//SecretId
private
static
String
getSecretId
()
{
return
""
;
return
"
AKIDwoaIn1KbnrlT4Vq6NbkmfMrYC0oRs7A1
"
;
}
//SecretKey
private
static
String
getSecretKey
()
{
return
""
;
return
"
mLoCPQZinhmlZBboDXzKUTGtO3d2EJFI
"
;
}
//脚本userData
...
...
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