|
|
@ -13,6 +13,7 @@ import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; |
|
|
|
import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.epmet.commons.tools.redis.RedisKeys; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.CustomerAppDTO; |
|
|
|
import com.epmet.dto.CustomerAppRedisDTO; |
|
|
@ -115,7 +116,12 @@ public class CustomerAppWxServiceUtil implements ApplicationRunner { |
|
|
|
maServices = maServicesNew; |
|
|
|
if (appSet != null && result != null) { |
|
|
|
for (CustomerAppDTO app : result) { |
|
|
|
appSet.add(appKey, app); |
|
|
|
CustomerAppRedisDTO appRedis = ConvertUtils.sourceToTarget(app, CustomerAppRedisDTO.class); |
|
|
|
if(appRedis == null){ |
|
|
|
logger.warn("init CustomerAppRedis fail,convert return null,appDB:{}",JSON.toJSONString(app)); |
|
|
|
continue; |
|
|
|
} |
|
|
|
appSet.add(appKey, appRedis); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|