Authored by tanling

Merge branch 'hotfix_1224_paycancel' into test6.8.4

# Conflicts:
#	web/src/main/resources/databases.yml
#	web/src/main/webapp/META-INF/autoconf/databases.yml
@@ -141,7 +141,12 @@ public abstract class AbsOrderViewService { @@ -141,7 +141,12 @@ public abstract class AbsOrderViewService {
141 } 141 }
142 142
143 protected int calLeftTime(int timeout, int creatTime){ 143 protected int calLeftTime(int timeout, int creatTime){
144 - return timeout - (DateUtil.getCurrentTimeSecond() - creatTime); 144 + int payExpire = timeout - (DateUtil.getCurrentTimeSecond() - creatTime);
  145 + if (payExpire < 0){
  146 + payExpire = 0;
  147 + }
  148 +
  149 + return payExpire;
145 } 150 }
146 151
147 protected void setPayment(OrderDetailInfo orderDetailInfo, Integer paymentCode){ 152 protected void setPayment(OrderDetailInfo orderDetailInfo, Integer paymentCode){