src/ChenPay/WxPay.php
public function DataContrast($fee, $time, $Minute = 3, $Remarks = false)
    {
        // TODO: Implement DataContrast() method.
        if (isset($this->json['AddMsgList']) && is_array($this->json['AddMsgList']))
            foreach ($this->json['AddMsgList'] as $item) {
                if (preg_match('/微信支付收款/', $item['FileName'])) {
                    $fees = explode('微信支付收款', $item['FileName']);
                    $fees = explode('元', $fees[1])[0];
                    if ($item['CreateTime'] < $time && $item['CreateTime'] > $time - $Minute * 60 &&
                        $fees == $fee && ($Remarks === false || (($Remarks != '' && preg_match("/备注：{$Remarks}</", $item['Content']))
                                || ($Remarks == '' && !preg_match("/备注：/", $item['Content'])))
                        )) {
                        return $item['MsgId'];
                    }
                }
            }
        return false;
    }
public function DataContrast($fee, $time, $Minute = 3, $Remarks = false)
    {
        // TODO: Implement DataContrast() method.
        if (isset($this->json['AddMsgList']) && is_array($this->json['AddMsgList']))
            foreach ($this->json['AddMsgList'] as $item) {
                if (preg_match('/微信支付收款/', $item['FileName'])) {
                    $fees = explode('微信支付收款', $item['FileName']);
                    $fees = explode('元', $fees[1])[0];
                    if ($item['CreateTime'] < $time && $item['CreateTime'] > $time - $Minute * 60 &&
                        $fees == $fee && ($Remarks === false || (($Remarks != '' && preg_match("/备注：{$Remarks}</", $item['Content']))
                                || ($Remarks == '' && !preg_match("/备注：/", $item['Content'])))
                        )) {
                        return $item['MsgId'];
                    }
                }
            }
        return false;
    }
获取最新的订单号
@param $fee
@param $time
@param int $Minute
@param bool $Remarks
@return array|bool