Commit 57b3e4f5 authored by wwccw0591's avatar wwccw0591

pc

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