From f4a0f2acc63d7785eab108419a4e16f5f688cb95 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期六, 18 一月 2020 12:06:27 +0800
Subject: [PATCH] 用户注册信息

---
 fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
index d0d51f6..7414fa4 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/wxmp/v1/GoodsController.java
@@ -39,6 +39,7 @@
 import com.yeshi.fanli.entity.goods.CollectionGoodsV2;
 import com.yeshi.fanli.entity.jd.JDGoods;
 import com.yeshi.fanli.entity.jd.JDGoodsClass;
+import com.yeshi.fanli.entity.system.ConfigKeyEnum;
 import com.yeshi.fanli.exception.share.UserShareGoodsRecordException;
 import com.yeshi.fanli.exception.user.UserInfoExtraException;
 import com.yeshi.fanli.log.LogHelper;
@@ -149,7 +150,7 @@
 	@RequestMapping(value = "getTopCategory", method = RequestMethod.POST)
 	public void getTopCategory(WXMPAcceptData acceptData, PrintWriter out) {
 		JSONObject data = new JSONObject();
-		data.put("list", configService.get("jd_wxmp_class"));
+		data.put("list", configService.get(ConfigKeyEnum.jdWXMPClass.getKey()));
 		out.print(JsonUtil.loadTrueResult(data));
 	}
 
@@ -183,7 +184,7 @@
 				if (StringUtil.isNullOrEmpty(swiper.getParams())) {
 					params = JSONObject.fromObject(swiper.getParams());
 				}
-				swiper.setJumpDetail(JumpDetailUtil.getWXMPJumDetail(swiper.getJumpDetail(), params));
+				swiper.setJumpDetail(JumpDetailUtil.getWXMPJumDetail(swiper.getJumpDetail()));
 				swiper.setParams(null);
 			}
 			data.put("bannerList", JsonUtil.getApiCommonGson().toJson(picList));
@@ -365,7 +366,7 @@
 		List<ShamUser> listShareUser = new ArrayList<ShamUser>();
 
 		// 浜笢寮�鍚垎浜�
-		String open = configService.get("share_jd_open");
+		String open = configService.get(ConfigKeyEnum.shareOpenJD.getKey());
 		if ("1".equals(open.trim())) {
 			extraVO.setShareValid(true);
 			MoneyInfoVO moneyInfo = goodsDetail.getMoneyInfo();
@@ -409,7 +410,7 @@
 		extraVO.setFanliValid(true);
 
 		if (StringUtil.isNullOrEmpty(helpLink)) {
-			helpLink = configService.get("no_rebate_help_link");
+			helpLink = configService.get(ConfigKeyEnum.noRebateHelpLink.getKey());
 		}
 
 		ShareVO shareInfoVO = new ShareVO();
@@ -476,7 +477,7 @@
 		}
 		
 		GoodsDetailExtraVO extraVO = new GoodsDetailExtraVO();
-		extraVO.setDetailUrl("http://apph5.yeshitv.com/apppage/goods_img_pdd.html?id=" + id);
+		extraVO.setDetailUrl("http://apph5.banliapp.com/apppage/goods_img_pdd.html?id=" + id);
 		
 		String salesTip = pddGoods.getSalesTip();
 		if (!StringUtil.isNullOrEmpty(salesTip)) {
@@ -532,7 +533,7 @@
 		extraVO.setShareValid(true);
 
 		if (StringUtil.isNullOrEmpty(helpLink)) {
-			helpLink = configService.get("no_rebate_help_link");
+			helpLink = configService.get(ConfigKeyEnum.noRebateHelpLink.getKey());
 		}
 
 		ShareVO shareInfoVO = new ShareVO();
@@ -822,7 +823,7 @@
 		String scene = goodsType+"#"+goodsId+"#" + inviteCode;
 		FileUploadResult uploadResult = null;
 		if (type == 1) {
-			String erCodeUrl = "https://wxmp.banliapp.com/goods?info="+ scene;
+			String erCodeUrl = "https://wxmp.banliapp.com/goods?i="+ scene;
 			uploadResult = qrCodeService.drawGoodsPoster(erCodeUrl, user.getPortrait(), goods);
 		} else {
 			String acessToken = WXUtil.getAcessToken(Constant.WXMP_APP_INFO.getAppId(), Constant.WXMP_APP_INFO.getAppSecret());

--
Gitblit v1.8.0