Commit a11c62d3 by zhiheng.zhang

返回对象配置修改

parent a95d2078
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment