Authored by Rock Zhang

屏蔽直接访问银联支付回调页面会出现报错的bug

Code Review By Rock Zhang
@@ -40,7 +40,7 @@ class Service extends PayAbstract @@ -40,7 +40,7 @@ class Service extends PayAbstract
40 $verify = false; 40 $verify = false;
41 $responseData = new Rspparams(); 41 $responseData = new Rspparams();
42 42
43 - if ($package['respCode'] !== '00') { 43 + if (!isset($package['respCode']) || $package['respCode'] !== '00') {
44 $this->log->LogInfo('支付返回码有误'); 44 $this->log->LogInfo('支付返回码有误');
45 $responseData->payResult = -1; 45 $responseData->payResult = -1;
46 return $responseData; 46 return $responseData;