...
|
...
|
@@ -190,6 +190,11 @@ class OrderModel |
|
|
$detail['traceOrder']['orderDate'] = date('Y.m.d H:i:s', $orderDetail['create_time']);
|
|
|
$expressInfo = self::getExpressInfo($orderCode, $uid, $orderDetail['payment_type'], $orderDetail['create_time'], true);
|
|
|
$detail['traceOrder']['logistics'] = $expressInfo['logistics']; //物流信息
|
|
|
if(empty($expressInfo['logistics'][0])){
|
|
|
$detail['hastrace']=false;
|
|
|
}else{
|
|
|
$detail['hastrace']=true;
|
|
|
}
|
|
|
$detail['traceOrder']['logisticsCompany'] = $expressInfo['logisticsCompany'];
|
|
|
$detail['traceOrder']['courierNumbe'] = $expressInfo['courierNumbe'];
|
|
|
//虚拟商品
|
...
|
...
|
@@ -338,7 +343,7 @@ class OrderModel |
|
|
$result['courierNumbe'] = '';
|
|
|
if ($paymetType == 1) {
|
|
|
if ($isDetail) {
|
|
|
$result['logistics'][] = array(date('Y-m-d H:i:s', $createTime), ' ', '您的订单已提交,等待付款');
|
|
|
$result['logistics'][] = '';//array(date('Y-m-d H:i:s', $createTime), ' ', '您的订单已提交,等待付款');
|
|
|
}
|
|
|
else {
|
|
|
$result['logistics'][] = date('Y-m-d H:i:s', $createTime) . ' ' . '您的订单已提交,等待付款';
|
...
|
...
|
@@ -376,7 +381,7 @@ class OrderModel |
|
|
}
|
|
|
}
|
|
|
//把最初的处理放最后
|
|
|
//$result['logistics'][] = $logisticsTmp;
|
|
|
$result['logistics'][] = $logisticsTmp;
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -587,6 +592,8 @@ class OrderModel |
|
|
$ticketUrl = Helpers::url('/home/QRcode', array('orderCode' => $orderCode));//改成node重构的
|
|
|
//立即付款
|
|
|
$payUrl = Helpers::url('/shopping/pay', array('ordercode' => $orderCode));
|
|
|
//评价晒单 node
|
|
|
$commentUrl = Helpers::url('/home/comment/order', array('orderId' => $orderCode));
|
|
|
//取消订单
|
|
|
$cancelOrderUrl = 'javascript:void(0)';
|
|
|
//确认订单
|
...
|
...
|
@@ -595,6 +602,10 @@ class OrderModel |
|
|
$exchangeUrl = Helpers::url('/home/returns/exchangeRequest', array('orderCode' => $orderCode));
|
|
|
//申请退货
|
|
|
$refundUrl = Helpers::url('/home/returns/refundrequest', array('orderCode' => $orderCode));
|
|
|
|
|
|
if($status >= 6 && $isCancel == 'N' && $payStatus == 'Y') {
|
|
|
$operation[] = array('href' => $commentUrl, 'name' => '晒单评价', 'comment' => true);
|
|
|
}
|
|
|
//再次购买 use_limit_code
|
|
|
if ( $isCancel == 'Y' && $useLimitCode !== 'Y') {
|
|
|
$operation[] = array( 'name' => '再次购买', 'reBuy' => true);
|
...
|
...
|
|