mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
订单可申请售后判断优化
This commit is contained in:
parent
6ffe805ca0
commit
e95979fefe
@ -1686,18 +1686,14 @@ class OrderService
|
||||
private static function OrderAftersaleStatusBtnText($order_status, $orderaftersale)
|
||||
{
|
||||
$text = null;
|
||||
if(in_array($order_status, [2,3,4,6]))
|
||||
if(!in_array($order_status, [0,1,5,6]))
|
||||
{
|
||||
if(empty($orderaftersale))
|
||||
{
|
||||
if(in_array($order_status, [2,3]))
|
||||
$text = '退款/退货';
|
||||
if($order_status == 4)
|
||||
{
|
||||
$text = '退款/退货';
|
||||
} else {
|
||||
if($order_status == 4)
|
||||
{
|
||||
$text = '申请售后';
|
||||
}
|
||||
$text = '申请售后';
|
||||
}
|
||||
} else {
|
||||
$text = ($orderaftersale['status'] == 3) ? '查看退款' : '查看进度';
|
||||
|
Loading…
Reference in New Issue
Block a user