Commit 7000ef49 authored by chenchuanwen's avatar chenchuanwen

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw

parents 44db944f 427e17de
...@@ -46,7 +46,8 @@ class Pay { ...@@ -46,7 +46,8 @@ class Pay {
$wxLitePay = WxLitePay::getInstance(); $wxLitePay = WxLitePay::getInstance();
$return = $wxLitePay->doPay($orderInfo); $return = $wxLitePay->doPay($orderInfo);
$prepayId = $wxLitePay->getPrepayId(); $prepayId = $wxLitePay->getPrepayId();
file_put_contents($this->baseDir . \Our\PathConst::ktestTime, $prepayId.'|'.$orderInfo['paySn'] ); file_put_contents(\Our\Common::getConfig('out.config') . \Our\PathConst::ktestTime, $prepayId.'|'
.$orderInfo['paySn'] );
if($prepayId) { if($prepayId) {
$dbName = \Our\DbNameConst::masterDBConnectName; $dbName = \Our\DbNameConst::masterDBConnectName;
......
...@@ -104,6 +104,7 @@ class TencentPay { ...@@ -104,6 +104,7 @@ class TencentPay {
{ {
$this->postXml(); $this->postXml();
$this->result = $this->xmlToArray($this->response); $this->result = $this->xmlToArray($this->response);
\Our\Log::getInstance()->write(json_encode($this->result),'/data/log/apptest');
$prepay_id = isset($this->result["prepay_id"])?$this->result["prepay_id"]:\Our\ApiConst::zero; $prepay_id = isset($this->result["prepay_id"])?$this->result["prepay_id"]:\Our\ApiConst::zero;
return $prepay_id; return $prepay_id;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment