| | |
| | | import com.yeshi.fanli.entity.bus.user.Extract;
|
| | | import com.yeshi.fanli.entity.bus.user.ExtractRecord;
|
| | | import com.yeshi.fanli.entity.bus.user.LostOrder;
|
| | | import com.yeshi.fanli.entity.bus.user.PreviewInfo.PreviewEnum;
|
| | | import com.yeshi.fanli.entity.bus.user.SMSHistory;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSaleExtraInfo;
|
| | |
| | | import com.yeshi.fanli.service.inter.user.AccountMessageService;
|
| | | import com.yeshi.fanli.service.inter.user.BindRemindService;
|
| | | import com.yeshi.fanli.service.inter.user.MaskKeyService;
|
| | | import com.yeshi.fanli.service.inter.user.PreviewInfoService;
|
| | | import com.yeshi.fanli.service.inter.user.ShamUserService;
|
| | | import com.yeshi.fanli.service.inter.user.SpreadUserImgService;
|
| | | import com.yeshi.fanli.service.inter.user.UserAccountService;
|
| | |
| | | import com.yeshi.fanli.util.taobao.TaoBaoUtil;
|
| | | import com.yeshi.fanli.util.taobao.TaoKeApiUtil;
|
| | | import com.yeshi.fanli.util.wx.WXLoginUtil;
|
| | | import com.yeshi.fanli.vo.user.MineInfoVO;
|
| | | import com.yeshi.fanli.vo.user.UserInfoExtraVO;
|
| | | import com.yeshi.fanli.vo.user.UserSettingsVO;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private GiveVIPApplyInfoService giveVIPApplyInfoService;
|
| | |
|
| | | @Resource
|
| | | private PreviewInfoService previewInfoService;
|
| | |
|
| | | private static final String EXTRACT_MIN_MONEY = ConfigKeyEnum.extractMoneyMin.getKey();
|
| | | private static final String EXTRACT_MAX_MONEY = ConfigKeyEnum.extractMoneyMAX.getKey();
|
| | |
| | |
|
| | | if (VersionUtil.greaterThan_2_0_7(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | UserInviteLevelEnum level = null;
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | level = userInviteService.getUserInviteLevelNew(uid);
|
| | | } else {
|
| | | level = userInviteService.getUserInviteLevel(uid);
|
| | | // VIP预览信息
|
| | | if (VersionUtil.greaterThan_2_1_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | String redisContent = previewInfoService.getRedisContent(uid, PreviewEnum.mineInfo);
|
| | | if (!StringUtil.isNullOrEmpty(redisContent)) {
|
| | | MineInfoVO vo = new Gson().fromJson(redisContent, MineInfoVO.class);
|
| | | if (vo != null) {
|
| | | if (!StringUtil.isNullOrEmpty(vo.getBalance()))
|
| | | userInfo.setMyHongBao(new BigDecimal(vo.getBalance()));
|
| | |
|
| | | if (!StringUtil.isNullOrEmpty(vo.getLevel()))
|
| | | for (UserInviteLevelEnum levelEnum : UserInviteLevelEnum.values()) {
|
| | | if (levelEnum.name().equals(vo.getLevel())) {
|
| | | level = levelEnum;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (level == null) {
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | level = userInviteService.getUserInviteLevelNew(uid);
|
| | | } else {
|
| | | level = userInviteService.getUserInviteLevel(uid);
|
| | | }
|
| | | }
|
| | | JSONObject inviteLevel = new JSONObject();
|
| | | inviteLevel.put("level", level.name());
|
| | |
| | | UserLevelEnum level = userLevelManager.getUserLevel(uid);
|
| | |
|
| | | JSONObject vipAction = null;
|
| | | if (level == UserLevelEnum.superVIP || level == UserLevelEnum.tearcher) {
|
| | | String managerLink = userVipConfigService.getValueByKey("vip_manager_link");
|
| | | if ((level == UserLevelEnum.superVIP || level == UserLevelEnum.tearcher)
|
| | | && !StringUtil.isNullOrEmpty(managerLink)) {
|
| | | vipAction = new JSONObject();
|
| | | vipAction.put("name", "超会管理");
|
| | | vipAction.put("jumpDetail",
|
| | |
| | | acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2,
|
| | | Integer.parseInt(acceptData.getVersion())));
|
| | | JSONObject params = new JSONObject();
|
| | | params.put("url", "");
|
| | | params.put("url", userVipConfigService.getValueByKey("vip_manager_link"));
|
| | | vipAction.put("params", params);
|
| | |
|
| | | } else {
|
| | | // 查询是否可以提交会员申请,是的话返回资料填写页面
|
| | | List<GiveVIPApplyInfo> list = giveVIPApplyInfoService.listByStateAndTargetUid(uid,
|
| | | GiveVIPApplyInfo.STATE_NO_INFO, 1, 20);
|
| | | if (list != null && list.size() > 0) {
|
| | |
|
| | | vipAction = new JSONObject();
|
| | | vipAction.put("name", "申请会员");
|
| | | vipAction.put("jumpDetail",
|
| | | jumpDetailV2Service.getByTypeCache("web",
|
| | | acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2,
|
| | | Integer.parseInt(acceptData.getVersion())));
|
| | | JSONObject params = new JSONObject();
|
| | | params.put("url", "");
|
| | | vipAction.put("params", params);
|
| | |
|
| | | String link = userVipConfigService.getValueByKey("apply_vip_upload_info_link");
|
| | | if (!StringUtil.isNullOrEmpty(link)) {
|
| | | vipAction = new JSONObject();
|
| | | vipAction.put("name", "申请会员");
|
| | | vipAction.put("jumpDetail",
|
| | | jumpDetailV2Service.getByTypeCache("web",
|
| | | acceptData.getPlatform().equalsIgnoreCase("android") ? 1 : 2,
|
| | | Integer.parseInt(acceptData.getVersion())));
|
| | | JSONObject params = new JSONObject();
|
| | | params.put("url", link.replace("[ID]", list.get(0).getId()));
|
| | | vipAction.put("params", params);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | data.put("vipAction", vipAction);
|
| | |
|
| | | }
|
| | | |
| | | data.put("user", JsonUtil.getConvertBigDecimalToStringBuilder(gsonBuilder).create().toJson(userInfo));
|
| | |
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | |
|