Commit a493902e authored by liuyuzhen's avatar liuyuzhen

小程序微信支付缺少openid

parent f81d9fa1
...@@ -47,8 +47,6 @@ class TencentPay { ...@@ -47,8 +47,6 @@ class TencentPay {
$this->parameters['trade_type']= $this->tradeType; $this->parameters['trade_type']= $this->tradeType;
//$this->parameters['openid']=$_SESSION['openid']; //$this->parameters['openid']=$_SESSION['openid'];
//print_r($this->parameters);exit; //print_r($this->parameters);exit;
\Our\Log::getInstance()->write(json_encode($this->parameters));
$prepay_id = $this->getPrepayId(); $prepay_id = $this->getPrepayId();
$this->setPrepayId($prepay_id); $this->setPrepayId($prepay_id);
} }
...@@ -70,7 +68,6 @@ class TencentPay { ...@@ -70,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