diff --git a/FlyCube/MpApi/Controller/PayController.class.php b/FlyCube/MpApi/Controller/PayController.class.php index 8af62ab..d0557cd 100644 --- a/FlyCube/MpApi/Controller/PayController.class.php +++ b/FlyCube/MpApi/Controller/PayController.class.php @@ -66,11 +66,11 @@ class PayController extends PublicController $where['order_sn'] = $_REQUEST['order_sn']; $field = array('order_sn, total_price, pay_sn,main_status,shop_id'); $orderDb = D('order'); + //后端订单检查 if (!$order = $orderDb->where($where)->field($field)->find()) { echo json_encode(array('status' => 0, 'msg' => '订单不存在')); exit(); } - //后端订单检查 if ($order['shipment_status'] == "已发货") { if (!($_REQUEST['refund_Shipment'] == "已送达" || $_REQUEST['refund_Shipment'] == "未送达")) { echo json_encode(array('status' => 0, 'msg' => '请确认货物状态')); @@ -145,6 +145,7 @@ class PayController extends PublicController if (strpos($outRefundNo, 'delivered') !== false) { //有delivered标记 货物状态改为已送达 $data['shipment_status'] = "已送达"; } + $this->publish("demo", $outRefundNo); // 更新订单 $orderDb->where($where)->data($data)->save(); }