From 1b3856e8f5431508d944a3b9c7a444dac3536bb6 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期二, 07 一月 2020 18:14:18 +0800
Subject: [PATCH] cofig

---
 fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserCouponController.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserCouponController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserCouponController.java
index 277b351..f268907 100644
--- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserCouponController.java
+++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserCouponController.java
@@ -19,6 +19,7 @@
 import com.yeshi.fanli.entity.bus.user.DeviceLotteryRecord;
 import com.yeshi.fanli.entity.bus.user.UserInfoExtra;
 import com.yeshi.fanli.entity.bus.user.UserLotteryRecord;
+import com.yeshi.fanli.entity.system.ConfigKeyEnum;
 import com.yeshi.fanli.entity.system.SystemCoupon;
 import com.yeshi.fanli.exception.user.UserLotteryRecordException;
 import com.yeshi.fanli.exception.user.UserSystemCouponException;
@@ -184,11 +185,11 @@
 			}
 
 			JSONObject dataTip = new JSONObject();
-			dataTip.put("content", configService.get("free_coupon_tip"));
+			dataTip.put("content", configService.get(ConfigKeyEnum.freeCouponTip.getKey()));
 			dataTip.put("fontColor", "#F14242");
 
 			JSONObject data = new JSONObject();
-			data.put("helpLink", configService.get("free_coupon_help"));
+			data.put("helpLink", configService.get(ConfigKeyEnum.freeCouponHelp.getKey()));
 			data.put("tip", dataTip);
 			data.put("count", resultList.size());
 			data.put("result_list", JsonUtil.getApiCommonGson().toJson(resultList));
@@ -257,7 +258,7 @@
 			}
 
 			JSONObject data = new JSONObject();
-			data.put("helpLink", configService.get("reward_coupon_help"));
+			data.put("helpLink", configService.get(ConfigKeyEnum.rewardCouponHelp.getKey()));
 			data.put("count", resultList.size());
 			data.put("result_list", JsonUtil.getApiCommonGson().toJson(resultList));
 
@@ -402,7 +403,7 @@
 				count = count - list.size();
 			}
 			// 鎶藉瑙勫垯
-			String lotteryRule = configService.get("lottery_rule_newbies");
+			String lotteryRule = configService.get(ConfigKeyEnum.lotteryRuleNewbies.getKey());
 			
 			JSONObject data = new JSONObject();
 			data.put("count", count);

--
Gitblit v1.8.0