| | |
| | | hongBao.setHasChild(false);
|
| | | return hongBao;
|
| | | }
|
| | | |
| | | /**
|
| | | * 获取红包可打开时间
|
| | | * @param timeMillis
|
| | | * @param type 红包类型
|
| | | * @return
|
| | | */
|
| | | private static long preGettime(long timeMillis,int type){
|
| | | Map<String, String> map = hongBaoFactory.hongBaoManageService.convertMap();
|
| | | String day = null;
|
| | | String hour = null;
|
| | | if(type != Constant.HB_NEWUSER){
|
| | | day = map.get("hongbao_goods_unlock_day");
|
| | | hour = map.get("hongbao_goods_unlock_hour");
|
| | | }else{
|
| | | day = map.get("hongbao_new_user_unlock_day");
|
| | | hour = map.get("hongbao_new_user_unlock_hour");
|
| | | }
|
| | | long dayms =(long) (Double.parseDouble(day) * Constant.DAYMS);
|
| | | long hourms =(long)(Double.parseDouble(hour) * Constant.HOURMS);
|
| | | return timeMillis+dayms+hourms;
|
| | | }
|
| | |
|
| | | }
|