mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
订单发货状态判断错误修复
This commit is contained in:
parent
b77c436583
commit
79b85b7e22
@ -1449,7 +1449,7 @@ class OrderService
|
||||
{
|
||||
$result['is_confirm'] = ($data['status'] == 0) ? 1 : 0;
|
||||
$result['is_pay'] = ($data['pay_status'] == 0 && !in_array($data['status'], [5,6])) ? 1 : 0;
|
||||
$result['is_delivery'] = ($data['status'] == 2 && (isset($data['order_model']) && in_array($data['order_model'], [0,2]))) ? 1 : 0;
|
||||
$result['is_delivery'] = ($data['status'] == 2 && (isset($data['order_model']) && in_array($data['order_model'], [0,2,3]))) ? 1 : 0;
|
||||
$result['is_collect'] = ($data['status'] == 3) ? 1 : 0;
|
||||
$result['is_cancel'] = (in_array($data['status'], [0,1]) || (in_array($data['status'], [2,3,4]) && $data['pay_status'] == 0)) ? 1 : 0;
|
||||
$result['is_delete'] = (in_array($data['status'], [5,6]) && isset($data['is_delete_time']) && $data['is_delete_time'] == 0) ? 1 : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user