diff --git a/FlyCube/MpApi/Controller/PayController.class.php b/FlyCube/MpApi/Controller/PayController.class.php index 76771ed..c62266d 100644 --- a/FlyCube/MpApi/Controller/PayController.class.php +++ b/FlyCube/MpApi/Controller/PayController.class.php @@ -57,7 +57,7 @@ class PayController extends PublicController $this->isPower(); // post参数检查 - if ($_REQUEST['refund_price'] && $_REQUEST['order_sn'] && $_REQUEST['shop_id'] && ($_REQUEST['refundType'] == 'buyer' || $_REQUEST['refundType'] == 'seller')) { + if (!($_REQUEST['refund_price'] && $_REQUEST['order_sn'] && $_REQUEST['shop_id'] && ($_REQUEST['refund_type'] == 'buyer' || $_REQUEST['refund_type'] == 'seller'))) { echo json_encode(array('status' => 0, 'msg' => '退款参数有误')); exit(); }