From e4a74cbbb4f34b9e88dfa6edb8296a7e5b9e127c Mon Sep 17 00:00:00 2001 From: hexiaohui <hexiaohui@LAPTOP-03V48RSB> Date: 星期日, 27 一月 2019 21:28:16 +0800 Subject: [PATCH] 增加分享活动订单及相关服务 --- fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java index 288e6df..b54d921 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/InviteGetMoneyController.java @@ -87,7 +87,7 @@ @RequestMapping(value = "/inviteGetMoney", method = RequestMethod.POST) public void everyDayTaskList(AcceptData acceptData, int pageIndex, PrintWriter out, String uid) - throws NotExistObjectException { + throws NotExistObjectException,UserInfoExtraException { // 鏌ヨ鍟嗗搧鎬绘暟 Integer totalCount = 0; int totalPage = totalCount % Constant.PAGE_SIZE == 0 ? totalCount / Constant.PAGE_SIZE @@ -172,6 +172,17 @@ } data.put("desc", configService.get("invite_desc")); + + boolean hasCode = false; + if (uid != null && uid.trim().length() > 0) { + String inviteCode = userInfoExtraService.getUserInviteCode(Long.parseLong(uid)); + if (inviteCode != null && inviteCode.trim().length() > 0) { + hasCode = true; // 宸叉湁閭�璇风爜 + } + } + data.put("hasCode", hasCode); + + com.alibaba.fastjson.JSONObject root = new com.alibaba.fastjson.JSONObject(); root.put("code", 0); @@ -356,7 +367,7 @@ } UserInfo userInfo = userInfoService.selectByPKey(uid); - if (userInfo == null || userInfo.getPhone() == null) { + if (userInfo == null || userInfo.getPhone() == null || userInfo.getPhone().trim().length() == 0) { JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("鏆傛湭缁戝畾鐢佃瘽鍙风爜")); return; } -- Gitblit v1.8.0