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
5eccf61e
Commit
5eccf61e
authored
Apr 22, 2022
by
吴博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: [1007030] 修复997获取关注二维码时报错
parent
6467eced
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
AnswerSubscribeBizImpl.java
...m/pcloud/book/applet/biz/impl/AnswerSubscribeBizImpl.java
+1
-1
NacosPropertyLoadConfig.java
.../java/com/pcloud/book/config/NacosPropertyLoadConfig.java
+1
-1
BookProps.java
.../main/java/com/pcloud/book/util/properties/BookProps.java
+14
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/applet/biz/impl/AnswerSubscribeBizImpl.java
View file @
5eccf61e
...
@@ -297,7 +297,7 @@ public class AnswerSubscribeBizImpl implements AnswerSubscribeBiz {
...
@@ -297,7 +297,7 @@ public class AnswerSubscribeBizImpl implements AnswerSubscribeBiz {
@Override
@Override
public
AnswerSubscribeDTO
getSubscribeQrcodeState
(
Long
wechatUserId
,
Long
accountSettingId
)
{
public
AnswerSubscribeDTO
getSubscribeQrcodeState
(
Long
wechatUserId
,
Long
accountSettingId
)
{
AnswerSubscribeDTO
dto
=
new
AnswerSubscribeDTO
();
AnswerSubscribeDTO
dto
=
new
AnswerSubscribeDTO
();
if
(
QQ_ACCOUNT_SETTING_ID
.
equal
s
(
accountSettingId
))
{
if
(
BookProps
.
getIgnorOfficialAccountsId
().
contain
s
(
accountSettingId
))
{
return
dto
;
return
dto
;
}
}
String
openId
=
readerConsr
.
getOpenIdByWechatUserIdAndOfficialAccountsId
(
wechatUserId
,
accountSettingId
);
String
openId
=
readerConsr
.
getOpenIdByWechatUserIdAndOfficialAccountsId
(
wechatUserId
,
accountSettingId
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/config/NacosPropertyLoadConfig.java
View file @
5eccf61e
...
@@ -8,6 +8,6 @@ import org.springframework.context.annotation.Configuration;
...
@@ -8,6 +8,6 @@ import org.springframework.context.annotation.Configuration;
@EnableNacosConfig
@EnableNacosConfig
@NacosPropertySource
(
dataId
=
"bookdb.yml"
)
@NacosPropertySource
(
dataId
=
"bookdb.yml"
)
@NacosPropertySource
(
dataId
=
"book.yml"
)
@NacosPropertySource
(
dataId
=
"book.yml"
)
@NacosPropertySource
(
dataId
=
"public_system.properties"
)
@NacosPropertySource
(
dataId
=
"public_system.properties"
,
autoRefreshed
=
true
)
public
class
NacosPropertyLoadConfig
{
public
class
NacosPropertyLoadConfig
{
}
}
pcloud-service-book/src/main/java/com/pcloud/book/util/properties/BookProps.java
View file @
5eccf61e
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
*/
*/
package
com
.
pcloud
.
book
.
util
.
properties
;
package
com
.
pcloud
.
book
.
util
.
properties
;
import
com.alibaba.nacos.api.config.annotation.NacosValue
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
/**
/**
* @描述:微信常量类
* @描述:微信常量类
* @作者:songx
* @作者:songx
...
@@ -48,6 +51,17 @@ public class BookProps {
...
@@ -48,6 +51,17 @@ public class BookProps {
//默认公众号id
//默认公众号id
private
static
Long
defaultChannelId
;
private
static
Long
defaultChannelId
;
//可以忽略的公众号id
private
static
List
<
Long
>
ignorOfficialAccountsId
;
public
static
List
<
Long
>
getIgnorOfficialAccountsId
()
{
return
ignorOfficialAccountsId
;
}
@NacosValue
(
value
=
"#{'${ignor_official_accounts_id}'.split(',')}"
,
autoRefreshed
=
true
)
public
void
setIgnorOfficialAccountsId
(
List
<
Long
>
ignorOfficialAccountsId
)
{
BookProps
.
ignorOfficialAccountsId
=
ignorOfficialAccountsId
;
}
public
static
Long
getDefaultChannelId
()
{
public
static
Long
getDefaultChannelId
()
{
return
defaultChannelId
;
return
defaultChannelId
;
...
...
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