Commit 87bdc766 authored by wwccw0591's avatar wwccw0591

pc

parent 5ce5d9d0
...@@ -133,14 +133,20 @@ class OrderModel extends \DAO\AbstractModel ...@@ -133,14 +133,20 @@ class OrderModel extends \DAO\AbstractModel
//判断订单是否允许取消 //判断订单是否允许取消
public function isAllowCancel($order) public function isAllowCancel($order)
{ {
if ($order['orderState'] == ApiConst::orderStateWaitPay || $order['orderState'] == ApiConst::orderStateWaitConfirm || (($order['orderState'] == ApiConst::orderStateWaitSend || $order['orderState'] == ApiConst::orderStateWaitRecieve) && $order['isReceivePayment'] == ApiConst::noreceivePayment)) { if($order['paymentTime']==ApiConst::zero){
if(($order['paymentTime']+ApiConst::tenMinSecond)<TIMESTAMP && $order['paymentTime']>ApiConst::zero ){ if ($order['orderState'] == ApiConst::orderStateWaitPay || $order['orderState'] == ApiConst::orderStateWaitConfirm || (($order['orderState'] == ApiConst::orderStateWaitSend || $order['orderState'] == ApiConst::orderStateWaitRecieve) && $order['isReceivePayment'] == ApiConst::noreceivePayment)) {
return true;
} else {
return false; return false;
} }
return true; }else{
} else { if(($order['paymentTime']+ApiConst::tenMinSecond)<TIMESTAMP){
return false; return false;
}else{
return true;
}
} }
} }
//列表转换 //列表转换
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment