From ee5c8055b1c0dd7c67a9025a76b10bd287c93d9a Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 15 四月 2020 09:52:27 +0800 Subject: [PATCH] 资金明细增加团队分红 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserAccountController.java | 51 ++++++++++++++++++++++----------------------------- 1 files changed, 22 insertions(+), 29 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserAccountController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserAccountController.java index 4f41720..64b2b86 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserAccountController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserAccountController.java @@ -69,6 +69,7 @@ import com.yeshi.fanli.util.RedisManager; import com.yeshi.fanli.util.StringUtil; import com.yeshi.fanli.util.ThreadUtil; +import com.yeshi.fanli.util.VersionUtil; import com.yeshi.fanli.util.account.UserUtil; import com.yeshi.fanli.util.wx.WXLoginUtil; @@ -174,10 +175,6 @@ @Resource private DeviceActiveService deviceActiveService; - private static final String PASSWORD_MAX_ERROR = "password_max_error"; - private static final String EXTRACT_MIN_MONEY = "extract_min_money"; - private static final String EXTRACT_MAX_MONEY = "extract_max_money"; - /** * * @param acceptData @@ -195,6 +192,13 @@ public void login(AcceptData acceptData, String code, String vcode, String phone, boolean wxinstall, String tbOpenid, String tbNickName, String tbPortrait, String tbSession, int loginType, Boolean first, HttpSession session, HttpServletRequest request, PrintWriter out) { + + // 2.0浠ヤ笅鐗堟湰涓嶅厑璁哥櫥褰� + if (!VersionUtil.greaterThan_2_0(acceptData.getPlatform(), acceptData.getVersion())) { + out.print("璇峰崌绾у埌鏈�鏂扮増鏈�"); + return; + } + BusinessSystem system = businessSystemService.getBusinessSystemCache(acceptData.getPlatform(), acceptData.getPackages()); if (system == null) { @@ -262,14 +266,6 @@ ThreadUtil.run(new Runnable() { public void run() { try { - int platformType = 0; - String platform = acceptData.getPlatform(); - if ("android".equals(platform)) { - platformType = 1; - } else if ("ios".equals(platform)) { - platformType = 2; - } - userSystemCouponService.copyLotteryPrize(uuser.getId(), platformType, acceptData.getDevice()); // 缁戝畾oppo,vivo鎺ㄩ�� DeviceActive active = deviceActiveService.getFirstActiveInfo(acceptData.getDevice()); if (active != null) { @@ -285,7 +281,7 @@ } catch (UserAccountException e) { try { - LogHelper.cookieLog("鐧诲綍鍑洪敊:" + e.getCode() + "-" + e.getMessage()); + LogHelper.error("鐧诲綍鍑洪敊:" + e.getCode() + "-" + e.getMessage()); } catch (Exception e1) { e1.printStackTrace(); } @@ -309,6 +305,12 @@ @RequestMapping(value = "register") public void register(AcceptData acceptData, String tbOpenid, String tbNickName, String tbPortrait, String vcode, String phone, HttpServletRequest request, HttpSession session, PrintWriter out) { + // 2.0浠ヤ笅鐗堟湰涓嶅厑璁哥櫥褰� + if (!VersionUtil.greaterThan_2_0(acceptData.getPlatform(), acceptData.getVersion())) { + out.print("璇峰崌绾у埌鏈�鏂扮増鏈�"); + return; + } + BusinessSystem system = businessSystemService.getBusinessSystemCache(acceptData.getPlatform(), acceptData.getPackages()); if (system == null) { @@ -358,7 +360,6 @@ out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg())); } } - /** * 鑾峰彇鐢ㄦ埛ID @@ -1148,6 +1149,12 @@ public void loginNew(AcceptData acceptData, String vcode, String phone, String code, int loginType, HttpServletRequest request, PrintWriter out) { + // 2.0浠ヤ笅鐗堟湰涓嶅厑璁哥櫥褰� + if (!VersionUtil.greaterThan_2_0(acceptData.getPlatform(), acceptData.getVersion())) { + out.print("璇峰崌绾у埌鏈�鏂扮増鏈�"); + return; + } + try { BusinessSystem system = businessSystemService.getBusinessSystemCache(acceptData.getPlatform(), acceptData.getPackages()); @@ -1185,20 +1192,6 @@ LogHelper.errorDetailInfo(e); } - /* 鍚屾鏈櫥褰曚箣鍓嶈澶囨娊濂栨暟鎹� */ - try { - int platformType = 0; - String platform = acceptData.getPlatform(); - if ("android".equals(platform)) { - platformType = 1; - } else if ("ios".equals(platform)) { - platformType = 2; - } - userSystemCouponService.copyLotteryPrize(uuser.getId(), platformType, device); - } catch (Exception e) { - e.printStackTrace(); - } - // 缁戝畾oppo鎺ㄩ�� DeviceActive active = deviceActiveService.getFirstActiveInfo(acceptData.getDevice()); if (active != null) { @@ -1213,7 +1206,7 @@ } catch (UserAccountException e) { out.print(JsonUtil.loadFalseResult(e.getCode(), e.getMsg())); try { - LogHelper.cookieLog("鐧诲綍鍑洪敊:" + e.getCode() + "-" + e.getMessage()); + LogHelper.error("鐧诲綍鍑洪敊:" + e.getCode() + "-" + e.getMessage()); } catch (Exception e1) { e1.printStackTrace(); } -- Gitblit v1.8.0