diff --git a/mobile/source/helpers/dalianpay/demo/dalianpay.php b/mobile/source/helpers/dalianpay/demo/dalianpay.php index d102242..c5e0698 100644 --- a/mobile/source/helpers/dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/dalianpay/demo/dalianpay.php @@ -98,23 +98,6 @@ class dalianpay{ // 'front_url' => $config['front_url'], // 支付完成跳转 ); // echo "\r\n test \r\n"; - - // echo "please\r\n"; - // $trade_data = array( - // // 'body'=>'订单标题', - // 'branchno'=>'401', - // 'cusid'=>'100018380507D2C', - // 'notify_url'=>'https://shop.heavenk.com/mobile/wxnotify.php', - // 'orgid'=>'100018380507D2C', - // 'paytype'=>'A01', - // 'producp'=>'JX0002', - // 'randomstr'=>'a14cf3397a8163a76a2f229c41085a61', - // 'reqsn'=>'2023081664dc2b9454389', - // 'termcode'=>'000000', - // 'transtype'=>'JSP511', - // 'trxamt'=>'1', - // 'version'=>'11', - // ); // 生成签名 $sign = $Base->Crypt->makeSign($trade_data); @@ -134,9 +117,9 @@ class dalianpay{ // echo "[sign]: {$sign}"; // 加密交易报文 - echo "\r\n"; - var_dump($trade_data); - echo "\r\n"; + // echo "\r\n"; + // var_dump($trade_data); + // echo "\r\n"; $crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); // echo $crypted_trade_data . "\r\n"; if($crypted_trade_data === false) @@ -167,8 +150,6 @@ class dalianpay{ return json_encode($errorMessage,true); die(); } - // echo "\r\n"; - // echo "[response message]: {$response}"; // 解析响应报文 $response = json_decode($response, true); @@ -182,8 +163,8 @@ class dalianpay{ // 解密响应密文 $response_data = $Base->Crypt->decryptTradeData($response_data_crypted); - // echo "decryptTradeData:\r\n"; - // echo $response_data . "\r\n"; + echo "decryptTradeData:\r\n"; + echo $response_data . "\r\n"; if($response_data === false) { // echo $Base->Crypt->err_msg;