...
|
...
|
@@ -89,6 +89,13 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService |
|
|
bo.setFlag(2);
|
|
|
return bo;
|
|
|
}
|
|
|
|
|
|
if (activitydb.getIsShowPic().equals(0)) {
|
|
|
// 不显示APP内弹框,即活动作废
|
|
|
log.warn("activity is disabled,params is ordercode={},uid={},flag=6",ordercode,uid);
|
|
|
bo.setFlag(6);
|
|
|
return bo;
|
|
|
}
|
|
|
|
|
|
// activityStatus:1-活动未开始 2-活动中 3-活动已结束 4-活动不存在
|
|
|
int nowtime = DateUtils.getCurrentTimeSecond();
|
...
|
...
|
@@ -133,6 +140,7 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService |
|
|
Long endTime = now.getTimeInMillis() / 1000;
|
|
|
historyRequest2.setEndTime(endTime);
|
|
|
historyRequest2.setUid(uid);
|
|
|
historyRequest2.setActivityId(activitydb.getId());
|
|
|
List<UserShareHistory> sharedList = userShareHistoryDAO.selectBySelective(historyRequest2);
|
|
|
if (sharedList == null || sharedList.size() < Integer.valueOf(maxshare)) {
|
|
|
// 可分享
|
...
|
...
|
@@ -233,7 +241,7 @@ public class OrderShareActivityServiceImpl implements IOrderShareActivityService |
|
|
respBO.setReturnCode(Constant.ORDER_SHARE_ACTIVITY_EXPIRE);
|
|
|
respBO.setReturnMsg("活动已经过期");
|
|
|
log.warn("the acitivity is out of date, mobile: {}, activity: {}", mobile, activityInfo.getId());
|
|
|
return respBO;
|
|
|
return respBO;
|
|
|
}
|
|
|
|
|
|
//3、检查手机号是否注册过
|
...
|
...
|
|