diff --git a/mobile/source/helpers/dalianpay/demo/dalianpay.php b/mobile/source/helpers/dalianpay/demo/dalianpay.php index a9a1844..74eda87 100644 --- a/mobile/source/helpers/dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/dalianpay/demo/dalianpay.php @@ -66,45 +66,47 @@ class dalianpay{ // echo "\r\n"; // var_dump(uniqid($reqsn_prefix)); - // $trade_data = array( - // 'orgid' => $config['org_num'], - // 'cusid' => $config['cusid'], - // 'branchno' => $config['branchno'], - // // 'termcode' => $config['termcode'], - // 'version' => $config['version'], - // 'trxamt' => $trxamt, // total_fee - // 'reqsn' => $reqsn, // 交易订单号 - // 'producp' => $config['producp'], - // 'transtype' => $config['transtype'], // 微信支付 - // 'paytype' => $config['paytype'], // 微信js支付 - // 'randomstr' => md5( uniqid() ), - // // 'body' => 'pages', - // // 'acct' => $openid, - // // 'notify_url' => '', // 交易结果通知地址 - // // 'sub_appid' => 'wx79343915f99167e6', - // // 'front_url' => '', // 支付完成跳转 - // ); echo "reqsn is " . $reqsn . "\n\r"; echo "uniqid reqsn is " . uniqid($reqsn_prefix) . "\n\r"; $trade_data = array( - 'orgid' => '5503001', - 'cusid' => '10147', - 'branchno' => '44', + 'orgid' => $config['org_num'], + 'cusid' => $config['cusid'], + 'branchno' => $config['branchno'], // 'termcode' => $config['termcode'], - 'version' => '11', - 'trxamt' => '600', // total_fee - // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 - 'reqsn' => $reqsn, // 交易订单号 - 'producp' => 'JX0002', - 'transtype' => 'JSP501', // 微信支付 - 'paytype' => 'W02', // 微信js支付 + 'version' => $config['version'], + 'trxamt' => $trxamt, // total_fee + // 'reqsn' => $reqsn, // 交易订单号 + 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 + 'producp' => $config['producp'], + 'transtype' => $config['transtype'], // 微信支付 + 'paytype' => $config['paytype'], // 微信js支付 'randomstr' => md5( uniqid() ), // 'body' => 'pages', - 'acct' => $openid, + // 'acct' => $openid, // 'notify_url' => '', // 交易结果通知地址 // 'sub_appid' => 'wx79343915f99167e6', // 'front_url' => '', // 支付完成跳转 ); + + // $trade_data = array( + // 'orgid' => '5503001', + // 'cusid' => '10147', + // 'branchno' => '44', + // // 'termcode' => $config['termcode'], + // 'version' => '11', + // 'trxamt' => '600', // total_fee + // // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 + // 'reqsn' => $reqsn, // 交易订单号 + // 'producp' => 'JX0002', + // 'transtype' => 'JSP501', // 微信支付 + // 'paytype' => 'W02', // 微信js支付 + // 'randomstr' => md5( uniqid() ), + // // 'body' => 'pages', + // 'acct' => $openid, + // // 'notify_url' => '', // 交易结果通知地址 + // // 'sub_appid' => 'wx79343915f99167e6', + // // 'front_url' => '', // 支付完成跳转 + // ); // 生成签名 $sign = $Base->Crypt->makeSign($trade_data); diff --git a/mobile/source/helpers/test_dalianpay/demo/dalianpay.php b/mobile/source/helpers/test_dalianpay/demo/dalianpay.php index ea56b42..edfdc8f 100644 --- a/mobile/source/helpers/test_dalianpay/demo/dalianpay.php +++ b/mobile/source/helpers/test_dalianpay/demo/dalianpay.php @@ -94,8 +94,8 @@ class dalianpay{ // 'termcode' => $config['termcode'], 'version' => '11', 'trxamt' => '600', // total_fee - // 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 - 'reqsn' => $reqsn, // 交易订单号 + 'reqsn' => uniqid($reqsn_prefix), // 交易订单号 + // 'reqsn' => $reqsn, // 交易订单号 'producp' => 'JX0002', 'transtype' => 'JSP501', // 微信支付 'paytype' => 'W02', // 微信js支付