From 01955bc3f6e6eec6d82a5a3848efde1fa6cc8137 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 30 九月 2020 17:29:26 +0800 Subject: [PATCH] 云发单优化 --- fanli/src/main/java/com/yeshi/fanli/controller/h5/H5S11Controller.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5S11Controller.java b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5S11Controller.java index 8a098e5..5f85ee0 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5S11Controller.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/h5/H5S11Controller.java @@ -4,6 +4,8 @@ import javax.annotation.Resource; +import com.yeshi.fanli.entity.bus.user.UserInfo; +import com.yeshi.fanli.service.inter.user.UserInfoService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.yeshi.utils.JsonUtil; @@ -33,6 +35,9 @@ @Resource private ConfigService configService; + + @Resource + private UserInfoService userInfoService; /** * 鑾峰彇瓒呯骇绾㈠寘鍒嗕韩鍙d护 @@ -85,7 +90,8 @@ return; } - String desc = configService.get(ConfigKeyEnum.superHongBaoShareDesc.getKey()); + UserInfo user=userInfoService.selectByPKey(uid); + String desc = configService.getValue(ConfigKeyEnum.superHongBaoShareDesc.getKey(),user.getSystem()); desc = desc.replace("[娣樺彛浠", TaoBaoUtil.filterTaoToken(token)); try { out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(StringUtil.getBase64String(desc)))); @@ -138,8 +144,8 @@ out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadFalseResult(1, "鍙d护鐢熸垚澶辫触锛岃绋嶅悗閲嶈瘯"))); return; } - - String desc = configService.get(ConfigKeyEnum.superYuShouShareDesc.getKey()); + UserInfo user=userInfoService.selectByPKey(uid); + String desc = configService.getValue(ConfigKeyEnum.superYuShouShareDesc.getKey(),user.getSystem()); desc = desc.replace("[娣樺彛浠", TaoBaoUtil.filterTaoToken(token)); try { out.print(JsonUtil.loadJSONP(callback, JsonUtil.loadTrueResult(StringUtil.getBase64String(desc)))); -- Gitblit v1.8.0