From e04f81915e100107eca5fe16ba44898f3a0dbd55 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 04 七月 2020 18:48:06 +0800 Subject: [PATCH] redis指定数据库 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java index b524cb4..f0b30bb 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/UserCloudControllerV2.java @@ -244,7 +244,7 @@ } // 鏁欑▼ - List<BannerVO> listBanner = swiperPictureService.getByBannerCard("cloud_course"); + List<BannerVO> listBanner = swiperPictureService.getByBannerCard("cloud_course",acceptData.getSystem()); if (listBanner != null && listBanner.size() > 0) { cloudInfoVO.setCourse(listBanner.get(0)); } @@ -725,7 +725,7 @@ key = StringUtil.Md5(key); redisManager.cacheCommonString(key , builder.toString() , 60*10); - String link = configService.get(ConfigKeyEnum.cloudAlipayJumpLink.getKey()) +"?key=%s"; + String link = configService.getValue(ConfigKeyEnum.cloudAlipayJumpLink.getKey(),acceptData.getSystem()) +"?key=%s"; JSONObject dataObject = new JSONObject(); dataObject.put("link", String.format(link, key)); JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(dataObject)); @@ -784,7 +784,7 @@ } catch (UserCloudException e) { if (e.getCode() > 1000 && e.getCode() < 1100) { JSONObject data = new JSONObject(); - data.put("link", configService.get(ConfigKeyEnum.robotCloudLink.getKey())); + data.put("link", configService.getValue(ConfigKeyEnum.robotCloudLink.getKey(),acceptData.getSystem())); JsonUtil.printMode(out, callback, JsonUtil.loadTrue(e.getCode(), data, e.getMsg()).toString()); } else { JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getCode(),e.getMsg())); @@ -810,7 +810,7 @@ } try { - GoodsEvaluate evaluate = goodsEvaluateService.queryExistSingle(goodsId, goodsType); + GoodsEvaluate evaluate = goodsEvaluateService.queryExistSingle(goodsId, goodsType,acceptData.getSystem()); if (evaluate != null) { userCloudService.sendByDynamic(uid, evaluate.getId()); } else { @@ -830,7 +830,7 @@ } catch (UserCloudException e) { if (e.getCode() > 1000 && e.getCode() < 1100) { JSONObject data = new JSONObject(); - data.put("link", configService.get(ConfigKeyEnum.robotCloudLink.getKey())); + data.put("link", configService.getValue(ConfigKeyEnum.robotCloudLink.getKey(),acceptData.getSystem())); JsonUtil.printMode(out, callback, JsonUtil.loadTrue(e.getCode(), data, e.getMsg()).toString()); } else { JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(e.getCode(),e.getMsg())); -- Gitblit v1.8.0