Merge branch 'master' of http://111.229.174.37:3000/Food/food_server
This commit is contained in:
commit
345a8b65de
@ -553,10 +553,11 @@ class PlaneController extends PublicController
|
||||
if ($_REQUEST['id'] && $_REQUEST['state'] && $_REQUEST['val']) {
|
||||
$where['id'] = $_REQUEST['id'];
|
||||
$orderDb = D('order');
|
||||
$field = array('status');
|
||||
$field = array('status', 'back');
|
||||
$order = $orderDb->where($where)->field($field)->find();
|
||||
//不处理订单状态处于 已取消 未付款 交易关闭的情况
|
||||
if ($order['status'] == 'canceled' || $order['status'] == 'unpaid' || $order['status'] == 'closed') {
|
||||
//不处理订单退款状态处于 主动退款 已退款 拒绝退款的状况
|
||||
if ($order['status'] == 'canceled' || $order['status'] == 'unpaid' || $order['status'] == 'closed' || $order['back'] == 'actively' || $order['back'] == 'rejected' || $order['back'] == 'rejected' || $order['back'] == 'refunded') {
|
||||
echo json_encode(array('status' => 0, 'msg' => '参数有误'));
|
||||
exit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user