bug
This commit is contained in:
@@ -984,7 +984,7 @@ public class BuyOrderController {
|
||||
if(userCourseBuyEntities.size()>0){//延长有效期
|
||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||
if(userCourseBuyEntity.getEndTime()==null){
|
||||
if(userCourseBuyEntity.getEndTime()!=null){
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||
|
||||
@@ -257,7 +257,7 @@ public class AliPayServiceImpl implements AliPayService {
|
||||
if(userCourseBuyEntities.size()>0){
|
||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||
if(userCourseBuyEntity.getEndTime()==null){
|
||||
if(userCourseBuyEntity.getEndTime()!=null){
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||
|
||||
@@ -200,7 +200,7 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
|
||||
if(userCourseBuyEntities.size()>0){
|
||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||
if(userCourseBuyEntity.getEndTime()==null){
|
||||
if(userCourseBuyEntity.getEndTime()!=null){
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||
|
||||
Reference in New Issue
Block a user