Commit 4891f975 authored by zhz's avatar zhz

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

parents 91c2a79c a493902e
...@@ -34,6 +34,9 @@ class Pay { ...@@ -34,6 +34,9 @@ class Pay {
$alipay= Alipay::getInstance(); $alipay= Alipay::getInstance();
$return = $alipay->doPay($orderInfo); $return = $alipay->doPay($orderInfo);
}else if($data['channel'] == \Our\NameConst::wxLiteChannel){ }else if($data['channel'] == \Our\NameConst::wxLiteChannel){
$sess = \Yaf\Session::getInstance();
$authInfo = $sess->get('wxAuthInfo');
$orderInfo['openid'] = $authInfo['openid'];
$wxLitePay = WxLitePay::getInstance(); $wxLitePay = WxLitePay::getInstance();
$return = $wxLitePay->doPay($orderInfo); $return = $wxLitePay->doPay($orderInfo);
}else if($data['channel'] == \Our\NameConst::qqAppChannel){ }else if($data['channel'] == \Our\NameConst::qqAppChannel){
......
...@@ -39,7 +39,9 @@ class TencentPay { ...@@ -39,7 +39,9 @@ class TencentPay {
}else{ }else{
$this->parameters['total_fee'] = $total_fee; $this->parameters['total_fee'] = $total_fee;
} }
if(isset($orderInfo['openid'])&&$orderInfo['openid']){
$this->parameters['openid'] = $orderInfo['openid'];
}
$this->parameters['spbill_create_ip']=\Our\Common::getClientIp(); $this->parameters['spbill_create_ip']=\Our\Common::getClientIp();
$this->parameters['notify_url']=$this->notify_url; $this->parameters['notify_url']=$this->notify_url;
$this->parameters['trade_type']= $this->tradeType; $this->parameters['trade_type']= $this->tradeType;
...@@ -66,7 +68,6 @@ class TencentPay { ...@@ -66,7 +68,6 @@ 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));
$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