Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
order-group-application
order-group
Commits
a11c62d3
Commit
a11c62d3
authored
Feb 26, 2021
by
zhiheng.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回对象配置修改
parent
a95d2078
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
+5
-3
No files found.
shopping-cart-application-service/src/main/java/cn/freemud/service/impl/OpenStoreIappWxappConfigServiceImpl.java
View file @
a11c62d3
...
...
@@ -11,8 +11,10 @@ import cn.freemud.interceptor.ServiceException;
import
cn.freemud.redis.RedisCache
;
import
cn.freemud.service.OpenStoreIappWxappConfigService
;
import
cn.freemud.service.thirdparty.CustomerApplicationClient
;
import
cn.freemud.utils.BeanUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -38,7 +40,8 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
try
{
config
=
redisCache
.
hashGet
(
RedisKeyConstant
.
KGD_ORDER_OPEN_STORE_IAPP_WXAPP_CONFIG_WXAPPID_
,
assortmentCustomerInfoVo
.
getWxAppId
());
if
(
null
==
config
)
{
config
=
defauleConfig
;
config
=
new
OpenStoreIappWxappConfig
();
BeanUtils
.
copyProperties
(
config
,
defauleConfig
);
return
ResponseUtil
.
success
(
config
);
}
else
{
return
ResponseUtil
.
success
(
config
);
...
...
@@ -46,8 +49,7 @@ public class OpenStoreIappWxappConfigServiceImpl implements OpenStoreIappWxappCo
}
catch
(
Exception
e
){
//异常打印日常日志,返回默认config
log
.
error
(
"getOpenStoreIappWxappConfig error {}"
,
e
.
getMessage
());
config
=
defauleConfig
;
return
ResponseUtil
.
success
(
config
);
return
ResponseUtil
.
success
(
defauleConfig
);
}
}
...
...
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