Commit 57b3e4f5 authored by wwccw0591's avatar wwccw0591

pc

parent 8c6983e2
...@@ -14,6 +14,8 @@ class ApiConst ...@@ -14,6 +14,8 @@ class ApiConst
const tenDaySecond = 864000; const tenDaySecond = 864000;
//const tenDaySecond = 300; //const tenDaySecond = 300;
//一天 //一天
const threeDaySecond =259200;
//一天
const oneDaySecond = 86400; const oneDaySecond = 86400;
//半天 //半天
const halfDaySecond = 43200; const halfDaySecond = 43200;
......
...@@ -616,9 +616,15 @@ class OrderModel extends \DAO\AbstractModel ...@@ -616,9 +616,15 @@ class OrderModel extends \DAO\AbstractModel
} }
} }
$diff = TIMESTAMP - $order['finnshedTime']; $diff = TIMESTAMP - $order['finnshedTime'];
if ($order['orderState'] == ApiConst::orderStateComplete && $diff < ApiConst::oneDaySecond) { if ($order['orderState'] == ApiConst::orderStateComplete) {
if($diff < ApiConst::oneDaySecond && $order['shippingType']!=ApiConst::express){
$refundStateName = DescribeConst::refundRetund; $refundStateName = DescribeConst::refundRetund;
} }
if($diff < ApiConst::threeDaySecond && $order['shippingType']==ApiConst::express){
$refundStateName = DescribeConst::refundRetund;
}
}
return $refundStateName; return $refundStateName;
......
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