Authored by Rock Zhang

修复日志功能导致一些变量被输出的bug

Code Review By Rock Zhang
... ... @@ -112,7 +112,7 @@ class Service extends PayAbstract
*/
$this->log->LogInfo("===开始解析支付宝银行的回调参数===");
$this->log->logInfo("-----回调参数为---");
$this->log->logInfo(var_export($arrResponse));
$this->log->logInfo(var_export($arrResponse), true);
if(isset($arrResponse['q'])){
unset($arrResponse['q']);
... ...
... ... @@ -48,7 +48,7 @@ class Service extends PayAbstract
{
$this->log->LogInfo("===开始处理支付宝的请求参数===");
$this->log->logInfo("-----请求参数为---");
$this->log->logInfo(var_export($params));
$this->log->logInfo(var_export($params, true));
$baseUrl = $this->getBaseNoticeUrl($params->isTest);
// $loseTime = intval(($params->orderTime + 7200 -time())/60);
... ... @@ -110,7 +110,7 @@ class Service extends PayAbstract
*/
$this->log->LogInfo("===开始解析支付宝的回调参数===");
$this->log->logInfo("-----回调参数为---");
$this->log->logInfo(var_export($arrResponse));
$this->log->logInfo(var_export($arrResponse, true));
if (isset($arrResponse['q'])) {
unset($arrResponse['q']);
... ...
... ... @@ -33,7 +33,7 @@ class Service extends PayAbstract
$this->log->LogInfo("===开始处理盛付通的请求参数===");
$this->log->logInfo("-----请求参数为---");
$this->log->logInfo(var_export($params));
$this->log->logInfo(var_export($params, true));
$bankCode = $params->paymentParameter == 'platform' ? '' : $params->paymentParameter;
$baseUrl = $this->getBaseNoticeUrl($params->isTest);
... ... @@ -110,7 +110,7 @@ class Service extends PayAbstract
{
$this->log->LogInfo("===开始处理盛付通的请求参数===");
$this->log->logInfo("-----请求参数为---");
$this->log->logInfo(var_export($arrResponse));
$this->log->logInfo(var_export($arrResponse, true));
$rsp = new Rspparams();
if (!$this->checkResponse($arrResponse)) {
... ...
... ... @@ -36,7 +36,7 @@ class Service extends PayAbstract
{
$this->log->LogInfo("===开始处理财付通的请求参数===");
$this->log->logInfo("-----请求参数为---");
$this->log->logInfo(var_export($params));
$this->log->logInfo(var_export($params, true));
parent::getPayRequestPars($params);
$baseUrl = $this->getBaseNoticeUrl($params->isTest);
... ... @@ -78,7 +78,7 @@ class Service extends PayAbstract
{
$this->log->LogInfo("===开始处理财付通的回调参数===");
$this->log->logInfo("-----回调参数为---");
$this->log->logInfo(var_export($arrResponse));
$this->log->logInfo(var_export($arrResponse, true));
$rsp = new Rspparams();
if (!$this->checkResponse($arrResponse)) {
... ...
... ... @@ -52,7 +52,7 @@ class Service extends PayAbstract
public function pay(array $orderInfo) {
$this->log->LogInfo("===开始处理微信扫码支付的请求参数===");
$this->log->logInfo("-----请求参数为---");
$this->log->logInfo(var_export($orderInfo));
$this->log->logInfo(var_export($orderInfo, true));
//生成签名
$this->orderCode = $orderInfo['order_code'];
... ... @@ -83,7 +83,7 @@ class Service extends PayAbstract
$this->log->LogInfo("===开始处理微信扫码支付的支付地址===");
$this->log->logInfo("-----支付地址数据为---");
$this->log->logInfo(var_export($payUrlInfo));
$this->log->logInfo(var_export($payUrlInfo, true));
$payUrl = $payUrlInfo['pay_url'] . '?' . $payUrlInfo['pars'];
... ... @@ -104,7 +104,7 @@ class Service extends PayAbstract
$result = WxPayApi::orderQuery($input);
$this->log->logInfo("===查询微信扫码支付的结果结束,结果为===");
$this->log->logInfo(var_export($result));
$this->log->logInfo(var_export($result, true));
$rsp = new Rspparams();
// 支付成功
... ...