...
|
...
|
@@ -1907,7 +1907,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
logger.info("participateActivity,order is {},activity is {}",order,activity);
|
|
|
//1、判断是否符合活动条件
|
|
|
//1.1 活动类型:1-订单返利比例升级,2-订单返利翻x倍,3-额外返
|
|
|
if (activity.getType() == 3) {
|
|
|
if (activity.getType() != 2) {
|
|
|
//额外返在活动结束后走定时任务
|
|
|
return false;
|
|
|
}
|
...
|
...
|
@@ -1917,8 +1917,7 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
return false;
|
|
|
}
|
|
|
//1.3 是否活动期间
|
|
|
int now = DateUtil.getCurrentTimeSecond();
|
|
|
if (activity.getStartTime() > now || activity.getEndTime() < now) {
|
|
|
if (activity.getStartTime() > order.getOrderTime() || activity.getEndTime() < order.getOrderTime()) {
|
|
|
return false;
|
|
|
}
|
|
|
//2、参加活动
|
...
|
...
|
|