Commit 6a1b2a56 authored by liuyuzhen's avatar liuyuzhen

支付日志

parent ac9ca032
...@@ -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;
} }
......
...@@ -608,7 +608,7 @@ class StoreModel extends \DAO\AbstractModel ...@@ -608,7 +608,7 @@ class StoreModel extends \DAO\AbstractModel
$mchId = ''; $mchId = '';
if($store['wx_pay']){ if($store['wx_pay']){
if(!($store['wxpay_mchid']&&$store['onlinepay_flag'])){ if(!($store['wxpay_mchid']&&$store['onlinepay_flag'])){
$errorCode = \Error\CodeConfigModel::orderWxPayError;; $errorCode = \Error\CodeConfigModel::orderWxPayError;
} }
$addKey=\Our\Common::getConfig('password.key'); $addKey=\Our\Common::getConfig('password.key');
if ($store['wxpay_mchid_sign'] == md5($store['gmt_create'].$store['wxpay_mchid'].$addKey)) { if ($store['wxpay_mchid_sign'] == md5($store['gmt_create'].$store['wxpay_mchid'].$addKey)) {
......
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