Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
458fcfbc
Commit
458fcfbc
authored
May 20, 2022
by
郑勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [7143] 一码一资源跳转后端改
parent
471fe96b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
0 deletions
+43
-0
BookGroupService.java
.../java/com/pcloud/book/group/service/BookGroupService.java
+5
-0
QrcodeSceneConsr.java
...va/com/pcloud/book/consumer/channel/QrcodeSceneConsr.java
+16
-0
ResourcePageBiz.java
.../main/java/com/pcloud/book/group/biz/ResourcePageBiz.java
+4
-0
ResourcePageBizImpl.java
...a/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
+0
-0
ResourcePageFacade.java
...com/pcloud/book/group/facade/impl/ResourcePageFacade.java
+6
-0
BookGroupServiceImpl.java
.../pcloud/book/group/service/impl/BookGroupServiceImpl.java
+7
-0
ResourcePageOneServe.java
...n/java/com/pcloud/book/group/vo/ResourcePageOneServe.java
+5
-0
No files found.
pcloud-facade-book/src/main/java/com/pcloud/book/group/service/BookGroupService.java
View file @
458fcfbc
...
@@ -311,4 +311,9 @@ public interface BookGroupService {
...
@@ -311,4 +311,9 @@ public interface BookGroupService {
@ApiOperation
(
"二维码企微落地页是否配了内容"
)
@ApiOperation
(
"二维码企微落地页是否配了内容"
)
@PostMapping
(
"mapWxworkStateBySceneIds"
)
@PostMapping
(
"mapWxworkStateBySceneIds"
)
ResponseEntity
<
ResponseDto
<
Map
<
Long
,
Boolean
>>>
mapWxworkStateBySceneIds
(
@RequestBody
List
<
Long
>
sceneIds
);
ResponseEntity
<
ResponseDto
<
Map
<
Long
,
Boolean
>>>
mapWxworkStateBySceneIds
(
@RequestBody
List
<
Long
>
sceneIds
);
@ApiOperation
(
"获取只配置一个资源的跳转地址"
)
@GetMapping
(
"getQrcodeOneServe"
)
public
ResponseEntity
<
ResponseDto
<
String
>>
getQrcodeOneServe
(
@RequestParam
(
value
=
"bookGroupId"
,
required
=
false
)
Long
bookGroupId
,
@RequestParam
(
value
=
"sceneId"
,
required
=
false
)
Long
sceneId
);
}
}
pcloud-service-book/src/main/java/com/pcloud/book/consumer/channel/QrcodeSceneConsr.java
View file @
458fcfbc
...
@@ -750,4 +750,20 @@ public class QrcodeSceneConsr {
...
@@ -750,4 +750,20 @@ public class QrcodeSceneConsr {
}
}
return
null
;
return
null
;
}
}
/**
* 修改二维码是否符合一个资源直接跳转
*/
public
void
updateQrcodeOneServeRule
(
Long
sceneId
,
Integer
isOneServeJump
,
String
serveJumpUrl
,
Long
serveRuleVersion
)
throws
BizException
{
if
(
sceneId
==
null
)
{
return
;
}
try
{
qrcodeSceneService
.
updateQrcodeOneServeRule
(
sceneId
,
isOneServeJump
,
serveJumpUrl
,
serveRuleVersion
);
}
catch
(
BizException
e
)
{
LOGGER
.
warn
(
"【修改二维码是否符合一个资源直接跳转,<ERROR>.[qrcodeSceneService.updateQrcodeOneServeRule]:"
+
e
.
getMessage
(),
e
);
}
catch
(
Exception
e
)
{
LOGGER
.
error
(
"【修改二维码是否符合一个资源直接跳转,<ERROR>.[qrcodeSceneService.updateQrcodeOneServeRule]:"
+
e
.
getMessage
(),
e
);
}
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/ResourcePageBiz.java
View file @
458fcfbc
...
@@ -133,6 +133,10 @@ public interface ResourcePageBiz {
...
@@ -133,6 +133,10 @@ public interface ResourcePageBiz {
*/
*/
Long
updateResourcePageAndColumn
(
UpdateResourcePageVO
updateResourcePageVO
);
Long
updateResourcePageAndColumn
(
UpdateResourcePageVO
updateResourcePageVO
);
public
String
getQrcodeOneServe
(
Long
bookGroupId
,
Long
sceneId
,
Boolean
ignoreRays
);
void
updateQrcodeOneServe
(
Long
bookGroupId
,
Long
sceneId
,
Boolean
ignoreRays
);
/**
/**
* 客户端根据rays码id查资源页基本配置
* 客户端根据rays码id查资源页基本配置
* @author:zhuyajie
* @author:zhuyajie
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/ResourcePageBizImpl.java
View file @
458fcfbc
This diff is collapsed.
Click to expand it.
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/ResourcePageFacade.java
View file @
458fcfbc
...
@@ -189,6 +189,12 @@ public class ResourcePageFacade {
...
@@ -189,6 +189,12 @@ public class ResourcePageFacade {
return
new
ResponseDto
<>(
resourcePageBiz
.
updateResourcePageAndColumn
(
updateResourcePageVO
));
return
new
ResponseDto
<>(
resourcePageBiz
.
updateResourcePageAndColumn
(
updateResourcePageVO
));
}
}
@GetMapping
(
"getQrcodeOneServe"
)
public
ResponseDto
<?>
getQrcodeOneServe
(
@RequestParam
(
value
=
"bookGroupId"
,
required
=
false
)
Long
bookGroupId
,
@RequestParam
(
value
=
"sceneId"
,
required
=
false
)
Long
sceneId
)
{
return
new
ResponseDto
<>(
resourcePageBiz
.
getQrcodeOneServe
(
bookGroupId
,
sceneId
,
null
));
}
@ApiOperation
(
"客户端-根据rays码id查资源页基本配置"
)
@ApiOperation
(
"客户端-根据rays码id查资源页基本配置"
)
@GetMapping
(
"getResourcePageByBookGroupId4Wechat"
)
@GetMapping
(
"getResourcePageByBookGroupId4Wechat"
)
public
ResponseDto
<?>
getResourcePageByBookGroupId4Wechat
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
public
ResponseDto
<?>
getResourcePageByBookGroupId4Wechat
(
@CookieValue
(
"userInfo"
)
String
userInfo
,
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/service/impl/BookGroupServiceImpl.java
View file @
458fcfbc
...
@@ -528,4 +528,11 @@ public class BookGroupServiceImpl implements BookGroupService {
...
@@ -528,4 +528,11 @@ public class BookGroupServiceImpl implements BookGroupService {
public
ResponseEntity
<
ResponseDto
<
Map
<
Long
,
Boolean
>>>
mapWxworkStateBySceneIds
(
@RequestBody
List
<
Long
>
sceneIds
)
{
public
ResponseEntity
<
ResponseDto
<
Map
<
Long
,
Boolean
>>>
mapWxworkStateBySceneIds
(
@RequestBody
List
<
Long
>
sceneIds
)
{
return
ResponseHandleUtil
.
toResponse
(
resourcePageBiz
.
mapWxworkStateBySceneIds
(
sceneIds
));
return
ResponseHandleUtil
.
toResponse
(
resourcePageBiz
.
mapWxworkStateBySceneIds
(
sceneIds
));
}
}
@Override
@GetMapping
(
"getQrcodeOneServe"
)
public
ResponseEntity
<
ResponseDto
<
String
>>
getQrcodeOneServe
(
@RequestParam
(
value
=
"bookGroupId"
,
required
=
false
)
Long
bookGroupId
,
@RequestParam
(
value
=
"sceneId"
,
required
=
false
)
Long
sceneId
)
{
return
ResponseHandleUtil
.
toResponse
(
resourcePageBiz
.
getQrcodeOneServe
(
bookGroupId
,
sceneId
,
null
));
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/vo/ResourcePageOneServe.java
View file @
458fcfbc
...
@@ -59,4 +59,9 @@ public class ResourcePageOneServe extends BaseDto {
...
@@ -59,4 +59,9 @@ public class ResourcePageOneServe extends BaseDto {
private
Boolean
hasOfficialAccountsTool
;
private
Boolean
hasOfficialAccountsTool
;
private
Long
adviserId
;
private
Long
adviserId
;
/**
* 导航使用场景;1:菜单切换;2:功能跳转
*/
private
Integer
navigationJumpType
;
}
}
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