From 8feeb4e3912eb46c39a43197114b3c8b7fe8e7d9 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Wed, 31 Jul 2019 14:30:51 +0800 Subject: [PATCH] pay debug --- extend/payment/PayEase.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/extend/payment/PayEase.php b/extend/payment/PayEase.php index 1f6cd9e5f..2b0377dc5 100644 --- a/extend/payment/PayEase.php +++ b/extend/payment/PayEase.php @@ -174,8 +174,8 @@ class PayEase $data = [ 'merchantId' => $this->config['merchantId'], 'orderAmount' => $params['total_price']/100, - 'orderCurrency' => ' CNY', - 'requestId' => $params['order_no'], + 'orderCurrency' => 'CNY', + 'requestId' => $params['order_no'].GetNumberCode(6), 'notifyUrl' => $params['notify_url'], 'callbackUrl' => $params['call_back_url'], 'cashierVersion' => $this->config['cashierVersion'], @@ -187,7 +187,6 @@ class PayEase 'idType' => 'IDCARD', 'idNum' => '522228199102111214', ]; - $data['payer'] = json_encode($payer, JSON_UNESCAPED_UNICODE); $data['payer'] = $payer; $detail = [ [ @@ -196,7 +195,6 @@ class PayEase 'amount' => $params['total_price']/100, ] ]; - $data['productDetails'] = json_encode($detail, JSON_UNESCAPED_UNICODE); $data['productDetails'] = $detail; $private_key = ROOT.'rsakeys/client.pfx';