| | |
| | | import cn.hutool.core.date.DateUnit; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import cn.hutool.json.JSONUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | |
| | | } |
| | | } |
| | | //(2)每24小时只能提现一次 |
| | | // 提现次数 |
| | | DataDictionaryCustom withdrawOutTimesDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getType(), DataDictionaryEnum.OUT_ACCOUNT_PROFIT.getCode()); |
| | | String withdrawOutTimesStr = withdrawOutTimesDic.getValue() == null ? "1" : withdrawOutTimesDic.getValue(); |
| | | int withdrawOutTimes = Integer.parseInt(withdrawOutTimesStr); |
| | | Integer withdrawTimesReal = memberCoinWithdrawDao.selectByMemberIdAndCreateTime(memberId,DateUtil.format(DateUtil.date(),"yyyy-MM-dd")); |
| | | if(1 > withdrawTimesReal){ |
| | | if(withdrawOutTimes < withdrawTimesReal){ |
| | | return new FebsResponse().fail().message(MessageSourceUtils.getString("member_err_0014")); |
| | | } |
| | | |
| | |
| | | return multiply; |
| | | } |
| | | |
| | | @Override |
| | | public Integer isGoal(String num) { |
| | | Set set = new HashSet(); |
| | | char[] chars = num.toCharArray(); |
| | | for(char c:chars) { |
| | | set.add(c); |
| | | } |
| | | if(set.size()==num.length()){ |
| | | return 1; |
| | | }else{ |
| | | return 2; |
| | | } |
| | | } |
| | | |
| | | private String isIdentity(List<String> refererIds,String levelCode){ |
| | | String flag = levelCode; |
| | | for(String str : refererIds){ |